Skip to content

ReasonVienna/reason-react-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a repo with examples usages of Reason-React, whose docs are here. Have something you don't understand? Join us on Discord!

System setup

# On OSX, install opam via Homebrew:
brew update
brew install opam
# On Linux, see here (you'll need opam >= 1.2.2): http:https://opam.ocaml.org/doc/Install.html

opam init

# **Note**: add the line below to your ~/.bashrc or ~/.zshrc too; it's needed at every shell startup
eval $(opam config env)
opam update
opam switch 4.02.3

opam install reason
opam install merlin

Install project and dependencies

# Clone the repo
git clone https://github.com/chenglou/reason-react-example.git
cd reason-react-example

npm install
npm start
# in another tab
npm run build
# open the html file directly in your browsers e.g. src/tictactoe/index.html

After you see the webpack compilation succeed (the npm run build step), open up the nested html files in src/*! Then modify whichever file in src and refresh the page to see the changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published