A JavaScript Runtime is an environment that allows you to run JavaScript code and includes the necessary components for JavaScript code execution.
The main JavaScript runtimes are:
Each runtime has its ecosystem, but some runtimes provide cross-ecosystem support (e.g., npm packages in Deno).
Bun
Support React out of the box, which is useful for ๐งโ๐ป๏ธ Frontend Development.
Supports .jsx
and .tsx
out of the box (documentation)
The preferred way to set up React development in Bun is using Vite.
Add a dependency
bun add <dependency name>