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

https://github.com/dielduarte/button-builder

a simple example using rescript and react just for fun!
https://github.com/dielduarte/button-builder

Last synced: 12 months ago
JSON representation

a simple example using rescript and react just for fun!

Awesome Lists containing this project

README

          

# About
This is a simple button builder example using rescript and react, used as an example during my talk "rescript from a JS dev point of view"

image showing how the button builder looks like

# Snowpack, React and ReScript integration

The Snowpack, React and ReScript starter template. Based on [rescript-lang/rescript-project-template](https://github.com/rescript-lang/rescript-project-template)

## Installation

```sh
git clone git@github.com:dielduarte/react-snowpack-rescript-template.git

cd react-snowpack-rescript-template

npm install
```
## How to use

start rescript build and watch script

```js
npm run start
```

In another tab start snowpack dev server

```js
npm run snowpack-start
```

it will open a local server on port 8080

## Npm scripts

### ReScript

- Build: `npm run build`
- Clean: `npm run clean`
- Build & watch: `npm run start`

### Snowpack

- Start: `npm run snowpack-start`
- Build: `npm run snowpack-build`