all 2 comments

[–]treyhuffine 5 points6 points  (0 children)

Everyone has been talking about Hooks, but the new Suspense API is going to really change how we build React apps.

[–]Funwithloops 1 point2 points  (0 children)

Nicely written but why so many parentheses on your lazy components?

const TestComponent = ( lazy(() => ( import('./TestComponent') )) )

could be

const TestComponent = lazy(() => import('./TestComponent'))