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!
- Host: GitHub
- URL: https://github.com/dielduarte/button-builder
- Owner: dielduarte
- Created: 2021-05-23T18:33:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-24T01:40:09.000Z (over 4 years ago)
- Last Synced: 2025-01-07T15:42:40.428Z (about 1 year ago)
- Language: ReScript
- Size: 527 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"

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