bun-react-csr-base
bun-react-csr-base copied to clipboard
Client side rendering React App tooled with Bun template
React client side rendering apps tooled with Bun
Powerful React app building using Bun runtime, bunder, transpiler, package manager, and test runner.
bun react csr typescript scss react-router-dom-v6
You need bun installed in your system for this template:
curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL
To use this template to start a new react client-side rendering project from scratch:
bun create https://github.com/hedaukartik/bun-react-csr-base name-of-your-project
To install dependencies:
bun install
To run:
bun dev
This project was created using bun init in bun v1.0.25. Bun is a fast all-in-one JavaScript runtime.
node_modules after first working react app-
Known issues to fix:
- [x] Routing using react-router-dom during CSR.
- [x] Page refresh on sub-routes should show the correct screen and not file not found.
- [x] If any file is changed in the
./srcfolder, a new build should be created to show the latest changes. - [x] When lazy loading components, bun bundler does not import the files as expected to fix. https://github.com/oven-sh/bun/issues/9151
- [x] Fix css, scss loader issues.
