One of the key benefits of BuckleScript is the ease in which it makes the process of porting JavaScript libraries so they can be used within the context of a ReasonML application. The Reason Package Index, or redex, provides a central place for browsing all available packages. Additionally, creating your own BuckleScript bindings is a straight forward process that also provides value in the form of knowledge surrounding the inner-workings of the library at hand.
In this lesson, we learn how to integrate the emotion css-in-js libray into our project by installing the bs-css
package. Once installed, we'll create a .re
file for our style rules and see how we can add global css, as well as styles for specific css classes which we'll target using React's className
prop.