bun create gerardmarquinarubio/create-bun-react-app myapp
cd myapp
bun dev
Feature | Description |
---|---|
dependencies | react , react-dom , tailwindcss |
bundle | bun bundle |
dev (hot reload) | bun dev |
serve | bun start |
dist bundle size | 16kb (dist production) |
repo size | 37kb (src + conf + scripts) |
Meta-frameworks are overkill for simple client-side-only react apps. Bundlers like webpack
are too complicated and cumbersome, others like esbuild
or rollup
while much easier to use still require you to know the inner workings of bundling, module types, transpilation, loaders, etc. This template aims to solve that by simplifying the process.
This template has 4 dependencies:
react
andreact-dom
to develop and render your react app in the clienttailwindcss
for styling your app using convenient classnamesbun
to run your code and bundle it to the web
This template won't include:
- linters/formatters like
eslint
- state managment
redux
orreact-query
- route managment like
react-router
- ui libraries like
daisyui
orshadcn