Repository
Current version released
4 years ago
Problems of React
- Local state from props (boilerplate, need to use useEffect to update)
- Performance optimizations requires manual tweak (useCallback, useMemo etc.)
- Unnecessary JSX syntax
- setState is not composable
- server-side rendering is hard
- SEO is hard
- weird problems like (children state not updated properly), actually a root problem of OOP
Feature of this framework
- first-class support for server-side rendering
- only Typescript, no templating, no special syntax (e.g. JSX)
- no untyped magic (e.g. linking functions using string)
- user need not to perform low-level optimization (e.g. React.useMemo)
- DOM API should be very close to vanilla JS DOM API
- code that passes typechecking shouldn’t have bomb bug
Layout for pages
- login
- index.ts
- index.html
- index.css
- home
- index.ts
- index.html
- index.css
How to re-bundle Levo runtime?
deno bundle --config tsconfig.json src/levo-runtime.ts > levo-runtime.bundle.js