ReScript: Adding a third-party library
Sometimes we want to include a library that extends our code. To add a third-party library to our ReScript code we use
We start by installing the library using
yarn. For this example, I'll be using
npm install --save @opendevtools/rescript-telefonnummer
After the installation is complete we need to add the library name in our
bsconfig.json in the
After saving, the compiler will pick up that a change has been made in the configuration and build the library. We're now ready to start using the library in our code.