GithubHelp home page GithubHelp logo

aweary / crra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from knowbody/crra

0.0 2.0 0.0 143 KB

Create Reason React App

Home Page: https://crra.now.sh

JavaScript 41.13% CSS 17.36% HTML 5.52% OCaml 35.40% C++ 0.60%

crra's Introduction

Create Reason React App CircleCI

image

Still far from it but I think a good start. I always had an issue with just jumping in and building something with Reason as it felt like there is loads of config involved.

I simplified @chenglou's example repo a bit, big thanks to his amazing work! It lowers the barrier at least for me, hope it's helpful for others too.

One of the main goals of Reason is to make the tooling simple enough to not need such a tool. This is a work in progress towards it.

For now this is more like a quick start to React Reason than a "create-reason-react-app", but the latter is the end goal of this project. I am still very knew to the language and this is where I want to learn and explore.

Getting started

The easiest way to get started is by running yarn create:

  1. yarn create reason-react-app MyApp

or installing it globally:

  1. Install create-reason-react-app globally
yarn global add create-reason-react-app

or

npm i -g create-reason-react-app
  1. Create new project
create-reason-react-app MyReasonApp
  1. cd into directory
cd MyReasonApp
  1. yarn dev or npm run dev
  2. Open browser and navigate to: http://localhost:8080/

Intro

The project uses bucklescript build system and webpack under the hood. When you run yarn dev, bsb will run in watch mode and in parallel webpack's dev server is started at http://localhost:8080/. Files build by bsb can be found in the /lib directory. The amazing thing about bsb is that it produces readable javascript files. After these JS files are produced, webpack-dev-server uses them.

But how can I actually build something in Reason React

I will be adding more guides and examples to this repo. But for now, please check out @chenglou's repo with a few examples https://github.com/chenglou/reason-react-example. There's also a lot of information on syntax and Reason itself on the official website: https://facebook.github.io/reason.

Contribute

I'd like this to be a great "Get started..." place for Reason. Please submit feature requests, issues and pull requests. Feel free to contribute!

crra's People

Contributors

chenglou avatar dabit3 avatar jackjocross avatar jaredpalmer avatar knowbody avatar msenevir avatar

Watchers

 avatar  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.