Open parzhitsky opened 6 months ago
This would drastically simplify the *.lazy.tsx files:
*.lazy.tsx
export const Home: React.FC = () => { … } + export default Home
- export const Home = React.lazy(async () => { - const module = await import('./home.js') - return { - default: module.Home, - } - }) + export const Home = React.lazy(async () => await import('./home.js'))
It is unclear how to enforce the convention. One way is to create an ESLint rule (see #109)
This would drastically simplify the
*.lazy.tsx
files: