New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@rescript/react

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rescript/react

React bindings for ReScript

Source
npmnpm
Version
0.12.0-alpha.3
Version published
Weekly downloads
13K
-22.85%
Maintainers
6
Weekly downloads
 
Created
Source

@rescript/react

The Official ReScript Bindings for ReactJS

  • Documentation

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.12.0+:

    • ReScript Compiler v11.0+
    • ReactJS v18.0.0+
  • 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.

Keywords

rescript

FAQs

Package last updated on 03 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts