This demo uses startTransition
to keep the current UI rendered while React is transitioning to the next state.
Once you get a feel for this app, take a look at src/index.js
and try out the <AppWithRouter>
component instead of <App>
. It'll blow your mind
!
yarn install
yarn start
Visit http://localhost:3000.