.jsx and .tsx files out of the box. React just works with Bun.
Create a new React app with bun init --react. This gives you a template with a simple React app and a simple API server together in one full-stack app.
terminal
Hot Reloading
Runbun dev to start the app in development mode. This will start the API server and the React app with hot reloading.
Full-Stack App
Runbun start to start the API server and frontend together in one process.
Static Site
Runbun run build to build the app as a static site. This will create a dist directory with the built app and all the assets.
File Tree