Homepage
Sign in / Sign up
Go to the profile of Gregory Potdevin
Gregory Potdevin
Jul 28, 2016
Things I learned while trying to make a fast Treeview (in React)
Jin Yoo
31

Have you tried the first solution with {item.children && <Tree data={item.children} />} ? This would avoid creating intermediate empty nodes for all terminal nodes, and the rendered HTML is slightly smaller (no <! — react-empty: XX— >everywhere).

  • Go to the profile of Gregory Potdevin

    Gregory Potdevin

    • Share
    Go to the profile of Gregory Potdevin
    Never miss a story from Gregory Potdevin, when you sign up for Medium. Learn more
    Never miss a story from Gregory Potdevin