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 - npm Package Compare versions

Comparing version
0.12.0-alpha.3
to
0.12.0
+4
-0
CHANGELOG.md

@@ -13,2 +13,6 @@ # Changelog

## 0.12.0
- Requires ReScript 11.0.0 or newer.
## 0.12.0-alpha.3

@@ -15,0 +19,0 @@

+2
-2
{
"name": "@rescript/react",
"version": "0.12.0-alpha.3",
"version": "0.12.0",
"description": "React bindings for ReScript",

@@ -33,3 +33,3 @@ "files": [

"react-dom": "^18.2.0",
"rescript": "^11.0.0-alpha.5"
"rescript": "^11.0.0"
},

@@ -36,0 +36,0 @@ "peerDependencies": {

## @rescript/react
> The Official ReScript Bindings for ReactJS
> The Official [ReScript](https://rescript-lang.org) Bindings for [ReactJS](https://react.dev/)
- [Documentation](https://rescript-lang.org/docs/react/latest/introduction)
### Installation
#### React-JSX transformation V4
- [Documentation](https://github.com/rescript-lang/syntax/blob/master/cli/JSXV4.md)
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](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) 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](https://github.com/rescript-lang/syntax/blob/master/cli/JSXV4.md)
**Quick Links:**
- [Introduction](https://rescript-lang.org/docs/react/latest/introduction)
- [Installation](https://rescript-lang.org/docs/react/latest/installation)
### Requirements
### Versions
- v0.12.0+:
| @rescript/react | ReScript | ReactJS | Documentation |
| --------------- | -------- | ------- | ----------------------------------------------------------------- |
| 0.12.0+ | 11.0+ | 18.0.0+ | [Link](https://rescript-lang.org/docs/react/latest/introduction) |
| 0.11.0 | 10.1 | 18.0.0+ | [Link](https://rescript-lang.org/docs/react/v0.11.0/introduction) |
| 0.10.3 | 8.3 | 16.8.1+ | [Link](https://rescript-lang.org/docs/react/v0.10.0/introduction) |
- 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

@@ -55,0 +17,0 @@

Sorry, the diff of this file is not supported yet