Magic of React Suspense with concurrent react and React.lazy API
▻https://hackernoon.com/magic-of-react-suspense-with-concurrent-react-and-react-lazy-api-e32dc5f
Magical land of React Suspense, Concurrent React and React.lazy APIDan Abramov in his talk “Beyond React 16” at JSConf Iceland 2018 said:We’ve built a generic way to ensure that high-priority updates like user input don’t get blocked by rendering low-priority updates.Let’s understand what this means and also get introduced to some of the new features coming to React, some of which have been released as part of the latest stable release and some of them are still in unstable mode and it’s quite possible that the implementation of the api might change over time.Things we got introduced to in the talk:Suspensereact-cacheDefer set state with schedulerConcurrent React ModeCode splitting with React.lazySuspenseReact.Suspense in simple words means we can suspend the rendering of our component or (...)