1.2.6 • Published 3 years ago
@zineapp/rescript-toolkit v1.2.6
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.Array2exposed asArray,Js.String2exposed asString,Js.Consoleexposed asConsoleand more. - Focus on DX, if you do
open ReScriptToolkityou should feel at home 🖤. - Simple bindings to libraries like emotion, react-use, etc.
What's inside :package:
Bindings
- Emotion: Basic bindings for Emotion.
- ReactUse: Basic bindings (and partial for now) for react-use.
- IntersectionObserver: Basic bindings for react-intersection-observer.
- FramerMotion: Basic bindings for framer-motion.
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.Nullable→NullableJs.Date→DateJs.Array2→ArrayJs.String2→StringJs.Int→IntJs.Float→FloatJs.Obj→ObjectJs.Re→RegexJs.Console→ConsoleJs.Json→Json
Installation :zap:
Install the package using yarn/npm:
- Yarn
yarn add @portolab/rescript-toolkit- npm
npm i @portolab/rescript-toolkitThen, add it to bs-dependenciesin your bsconfig.json:
{
"bs-dependencies": [
// ....
"@portolab/rescript-toolkit"
]
}License
MIT