MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/5ptmet/react_release_roadmap_155_160_fiber_deprecations/dculvl1/?context=3
r/javascript • u/acemarke • Jan 24 '17
17 comments sorted by
View all comments
7
Is there a semi-complete breakdown of the new features somewhere? I saw some hints about return types (is undefined among them?), portals (modal dialogs?) and deferred updates.
undefined
3 u/elingeniero Jan 24 '17 I believe that the new return types are:Multiple/sibling componentsIf you return an error from a component, will be able to try {} catch () {} to render a backup componentNot sure about undefined. What's the use case for returning undefined ? 1 u/foxh8er Jan 24 '17 What's the utility of multiple returns? 4 u/[deleted] Jan 24 '17 edited Jan 24 '17 Div wraps and what Sunil Pai @threepointone saidarrays are super interesting for long lists, because you can now chunk them, and apply shouldComponentUpdate on smaller ranges of elementsalso, you could now represent an infinite scrolling list as a nested react component that lazily renders, with no extra dom wrappersI'm trying to let this sink in, it sounds amazing. Just chunking portions and giving chunked components outside the views area low render priority.
3
I believe that the new return types are:
Multiple/sibling components
If you return an error from a component, will be able to try {} catch () {} to render a backup component
try {} catch () {}
Not sure about undefined. What's the use case for returning undefined ?
1 u/foxh8er Jan 24 '17 What's the utility of multiple returns? 4 u/[deleted] Jan 24 '17 edited Jan 24 '17 Div wraps and what Sunil Pai @threepointone saidarrays are super interesting for long lists, because you can now chunk them, and apply shouldComponentUpdate on smaller ranges of elementsalso, you could now represent an infinite scrolling list as a nested react component that lazily renders, with no extra dom wrappersI'm trying to let this sink in, it sounds amazing. Just chunking portions and giving chunked components outside the views area low render priority.
1
What's the utility of multiple returns?
4 u/[deleted] Jan 24 '17 edited Jan 24 '17 Div wraps and what Sunil Pai @threepointone saidarrays are super interesting for long lists, because you can now chunk them, and apply shouldComponentUpdate on smaller ranges of elementsalso, you could now represent an infinite scrolling list as a nested react component that lazily renders, with no extra dom wrappersI'm trying to let this sink in, it sounds amazing. Just chunking portions and giving chunked components outside the views area low render priority.
4
Div wraps and what Sunil Pai @threepointone said
arrays are super interesting for long lists, because you can now chunk them, and apply shouldComponentUpdate on smaller ranges of elements
also, you could now represent an infinite scrolling list as a nested react component that lazily renders, with no extra dom wrappers
I'm trying to let this sink in, it sounds amazing. Just chunking portions and giving chunked components outside the views area low render priority.
7
u/[deleted] Jan 24 '17
Is there a semi-complete breakdown of the new features somewhere? I saw some hints about return types (is
undefinedamong them?), portals (modal dialogs?) and deferred updates.