An open API service indexing awesome lists of open source software.

https://github.com/hedaukartik/bun-react-csr-base

Client side rendering React App tooled with Bun template
https://github.com/hedaukartik/bun-react-csr-base

bun csr react react-router-dom-v6

Last synced: 8 months ago
JSON representation

Client side rendering React App tooled with Bun template

Awesome Lists containing this project

README

          






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:

```bash
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:

```bash
bun create https://github.com/hedaukartik/bun-react-csr-base name-of-your-project
```

### To install dependencies:

```bash
bun install
```

### To run:

```bash
bun dev
```

This project was created using `bun init` in bun v1.0.25. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.

### node_modules after first working react app-

image

### 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 `./src` folder, 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.