An open API service indexing awesome lists of open source software.

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

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/
```