@colisweb/reason-toolkit

Request - Unleash - Identifier - Hooks - Decoders - Fetcher - Form - Tailwind classname generator - vendors (library bindings) - react-icons (build with a script build:reacticons) - react-select - react-table - swr - downshift - copy-to-clipboard

Usage no npm install needed!

<script type="module">
  import coliswebReasonToolkit from 'https://cdn.skypack.dev/@colisweb/reason-toolkit';
</script>

README

Reason toolkit

Reason Colisweb toolkit

  • Request
  • Unleash
  • Identifier
  • Hooks
  • Decoders
  • Fetcher
  • Form
  • Tailwind classname generator
  • vendors (library bindings)
    • react-icons (build with a script build:reacticons)
    • react-select
    • react-table
    • swr
    • downshift
    • copy-to-clipboard

Usage

Install the package :

npm i @colisweb/reason-toolkit

Add the package to the bsconfig.json file :

{
  "bs-dependencies": ["@colisweb/reason-toolkit"]
}

The bindings in the vendors are globaly accessible. Everything else is scoped into the Toolkit namespace.

open Toolkit;

[@react.component]
let make = () => {
  let dialog = Hooks.useDisclosure();

  <div className="bg-white" />
};

Development

Build

npm run build

Watch

npm run watch