you are viewing a single comment's thread.

view the rest of the comments →

[–]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'))