About //
Goals //
What's inside //
Installation //
Porto Lab
About :bulb:
This package is a toolkit that contains bindings and utility modules for ReScript and React.
Goals 🎯
- Aliases to the most common JS modules:
Js.Array2
exposed as Array
, Js.String2
exposed as String
, Js.Console
exposed as Console
and more. - Focus on DX, if you do
open ReScriptToolkit
you should feel at home 🖤. - Simple bindings to libraries like emotion, react-use, etc.
What's inside :package:
Bindings
Modules
- Media: A module to deal with media queries.
- Render: A module helper to improve the code readability when converting values to JSX..
Aliases
Js.Array2
→ Array
Js.String2
→ String
Js.Int
→ Int
Js.Float
→ Float
Js.Obj
→ Object
Js.Re
→ Regex
Js.Console
→ Console
Installation :zap:
Install the package using yarn
/npm
:
yarn add @portolab/rescript-toolkit
npm i @portolab/rescript-toolkit
Then, add it to bs-dependencies
in your bsconfig.json
:
{
"bs-dependencies": [
"@portolab/rescript-toolkit"
]
}
License
MIT