Coder Social home page Coder Social logo

supriyo / reason-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reasonml/reason-react

0.0 1.0 0.0 39.58 MB

Reason bindings for ReactJS

Home Page: https://reasonml.github.io/reason-react/

License: MIT License

OCaml 74.06% JavaScript 24.42% Makefile 0.16% CSS 1.37%

reason-react's Introduction

Come join us in Discord!

Example

/* Greeting.re */
[@react.component]
let make = (~name) => <h1> {React.string("Hello " ++ name)} </h1>

in another file:

ReactDOMRe.renderToElementWithId(<Greeting name="Taylor" />, "root");

For a more in-depth example, see: https://github.com/reasonml-community/reason-react-hacker-news

Quick start

BuckleScript compiles ReasonML code to JavaScript. You can get it with:

npm install --global bs-platform
bsb -init my-react-app -theme react-hooks
cd my-react-app && npm install && npm start
# in another tab
npm run server

Documentation

See https://reasonml.github.io/reason-react/

Contribute

git clone https://github.com/reasonml/reason-react.git
cd reason-react
npm install
npm start

Then add some files somewhere (don't forget to change bsconfig.json, if needed).

See the README inside src for more info!

reason-react's People

Contributors

agtlucas avatar alex35mil avatar anmonteiro avatar bloodyowl avatar bodhish avatar chenglou avatar cknitt avatar cristianoc avatar cullophid avatar flash-gordon avatar glennsl avatar iwankaramazow avatar jaredly avatar jaredpalmer avatar jchavarri avatar jordwalke avatar lessp avatar logason avatar moroshko avatar oleglustenko avatar pet3ris avatar peterpme avatar phated avatar psb avatar rickyvetter avatar sanderspies avatar siffogh avatar thangngoc89 avatar yangshun avatar yawaramin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.