Install React with bun
Table of Contents
Published on
Installation
bun init --react my_first_app
cd my_first_app
bun run # Start development server
Directory Structure
my_first_app
├── README.md
├── bun-env.d.ts
├── bun.lock # Lock file for dependencies
├── bunfig.toml
├── node_modules # Dependencies are downloaded here
│ ├── @types
│ ├── bun-types
│ ├── csstype
│ ├── react
│ ├── react-dom
│ ├── scheduler
│ └── undici-types
├── package.json
├── src # Source code
│ ├── APITester.tsx
│ ├── App.tsx # Start developing from here
│ ├── frontend.tsx # Component named "App" is loaded from here
│ ├── index.css
│ ├── index.html # Loads "frontend.tsx" as script to fill content on web page
│ ├── index.tsx # Starts Bun web server
│ ├── logo.svg
│ └── react.svg
└── tsconfig.json
Related Posts