https://github.com/suptarr/myintroinrescript
My introduction to the ReScript that combined with React to make a React component
https://github.com/suptarr/myintroinrescript
create-react-app react reasonml tailwind-css
Last synced: 3 months ago
JSON representation
My introduction to the ReScript that combined with React to make a React component
- Host: GitHub
- URL: https://github.com/suptarr/myintroinrescript
- Owner: SupTarr
- Created: 2022-09-27T08:19:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-03T03:41:23.000Z (about 1 year ago)
- Last Synced: 2025-06-29T22:37:40.594Z (about 1 year ago)
- Topics: create-react-app, react, reasonml, tailwind-css
- Language: ReScript
- Homepage: https://my-intro-in-rescript.suptarr.vercel.app/
- Size: 2.62 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# myIntroInReScript
Welcome to my introduction to the **ReScript** that combined with **React** to make a *React component*
---
## Getting Started
### Prerequisites
This is an example of how to list things you need to use the software and how to install them.
- npm:
```sh
npm install npm@latest -g
```
- Node JS:
### Installation
- Create React App:
```sh
npx create-react-app myIntroInReScript
cd myIntroInReScript
npm install
```
- Install ReScript locally:
```sh
npm install rescript
```
- Add following dependency to your ReScript project:
```sh
npm install @rescript/react
```
- Then add the following setting to your existing `bsconfig.json`:
```json
{
"name": "your-project-name",
"sources": [
{
"dir": "src", // update this to wherever you're putting ReScript files
"subdirs": true
}
],
"package-specs": [
{
"module": "es6",
"in-source": true
}
],
"suffix": ".bs.js",
"reason": { "react-jsx": 3 },
"bs-dependencies": ["@rescript/react"]
}
```
- Add convenience npm scripts to `package.json`:
```json
"scripts": {
"res:build": "rescript",
"res:start": "rescript build -w"
}
```