Skip to content

hedaukartik/bun-react-csr-base

Repository files navigation



react bun

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-

image

Known issues to fix:

  • Routing using react-router-dom during CSR.
  • Page refresh on sub-routes should show the correct screen and not file not found.
  • If any file is changed in the ./src folder, a new build should be created to show the latest changes.
  • When lazy loading components, bun bundler does not import the files as expected to fix. oven-sh/bun#9151
  • Fix css, scss loader issues.