Skip to main content
Bun has built-in support for .jsx and .tsx files. React works with Bun. Create a new React app with bun init --react. This gives you a template with a React app and an API server together in one full-stack app.
terminal

Hot Reloading

Run bun dev to start the app in development mode. This starts the API server and the React app with hot reloading.

Full-Stack App

Run bun start to start the API server and frontend together in one process.

Static Site

Run bun run build to build the app as a static site. This creates a dist directory with the built app and its assets.
File Tree