mhaagens / lazy-route

Lazy/async route loading for React Router 4 through System.import
57 stars 7 forks source link

misc #2

Open msimonc opened 7 years ago

msimonc commented 7 years ago

Thanks for this, couple of issues: export 'Match' was not found in 'react-router' (or 'react-router-dom') and

Module build failed: SyntaxError: Unexpected token (21:55) 19 | <Match 20 | pattern="/myroute"

21 | render={(props) => <LazyRoute {...props} component={import('./myComponent')} />}

(it didn't like the import used in this way)