https://github.com/fujiharuka/deno-react-minimal-starter
Minimal starter template for React project that uses Deno as a bundler
https://github.com/fujiharuka/deno-react-minimal-starter
deno react
Last synced: 3 months ago
JSON representation
Minimal starter template for React project that uses Deno as a bundler
- Host: GitHub
- URL: https://github.com/fujiharuka/deno-react-minimal-starter
- Owner: FujiHaruka
- Created: 2021-12-26T04:30:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-26T04:31:07.000Z (over 3 years ago)
- Last Synced: 2025-01-08T04:12:59.564Z (5 months ago)
- Topics: deno, react
- Language: TypeScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minmal starter for React with Deno
This project is a minmal starter template to compile React JSX (`.tsx`) files into a bundled JavaScript file using Deno.
You don't need Node.js or `npm install` command to compile them, but just [Deno](https://deno.land/) is required.
The `deno bundle` command enables you to use Deno as a bundler for client side JavaScript.
Deno from 1.16 supports JSX, which means you can bundle `.jsx` and `.tsx` files. This project is an example for Deno's compilation of React projects.
## Get started
After cloning this project, just following command bundles TSX files into a bundled JS file.
```sh
deno bundle -c tsconfig.json src/app.tsx public/bundle.js
```And you can see the result by serving the `public/` folder.
```sh
deno run --allow-net --allow-read https://deno.land/std/http/file_server.ts public/
```