0.12.1 • Published 3 months ago

@rescript/react v0.12.1

Weekly downloads
268
License
MIT
Repository
github
Last release
3 months ago

@rescript/react

The Official ReScript Bindings for ReactJS

Installation

React-JSX transformation V4

The ReScript compiler v10.1+ is required.

npm install @rescript/react --save

In your bsconfig.json:

{
  "jsx": { "version": 4, "mode": "classic" },
  "bs-dependencies": ["@rescript/react"]
}

If you want to try the new jsx transform which was introduced in React v17, set the "mode": "automatic".

If you want to try build your project with JSX v3, see the V3 compatibility mode

Quick Links:

Requirements

  • v0.11.0+

    • ReScript Compiler v10.1+
    • ReactJS v18.0.0+
  • v0.10.3

    • bs-platform v8.3+
    • ReactJS v16.8.1+
    • Optimized for ReScript syntax usage

Development

npm install

# Starts the ReScript compiler in watch mode
npm start

Acknowledgements

This project is the next evolution of the original reason-react bindings.

0.12.1

3 months ago

0.12.0

4 months ago

0.12.0-alpha.3

10 months ago

0.12.0-alpha.2

12 months ago

0.12.0-alpha.1

1 year ago

0.11.0-rc.2

2 years ago

0.11.0-rc.3

1 year ago

0.11.0-rc.1

2 years ago

0.11.0

1 year ago

0.11.0-alpha.1

2 years ago

0.10.3

3 years ago

0.10.2

3 years ago

0.10.1

3 years ago

0.10.0

3 years ago