Skip to Main Content
ReasonML Quick Start Guide
book

ReasonML Quick Start Guide

by Raphael Rafatpanah, Bruno Joseph D'mello
February 2019
Beginner to intermediate content levelBeginner to intermediate
180 pages
4h 4m
English
Packt Publishing
Content preview from ReasonML Quick Start Guide

Using bs-css

While there is no official recommendation from the Reason team for a CSS-in-JS solution, many are currently using a library called bs-css that wraps the emotion CSS-in-JS library (version 9). The bs-css library provides a type-safe API for use in Reason. With this approach, we can have the compiler check our CSS as well. We'll get a feel for this library by converting our App.scss, which we created in Chapter 3, Creating ReasonReact Components.

To follow along, clone this book's GitHub repository and start from Chapter06/app-start using the following code:

git clone https://github.com/PacktPublishing/ReasonML-Quick-Start-Guide.gitcd ReasonML-Quick-Start-Guidecd Chapter06/app-startnpm install

To get started with bs-css, we'll ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Expert F# 4.0, Fourth Edition

Expert F# 4.0, Fourth Edition

Don Syme, Adam Granicz, Antonio Cisternino
Learn Type-Driven Development

Learn Type-Driven Development

Soumya Mukherjee, Yawar Amin, Kamon Ayeva

Publisher Resources

ISBN: 9781789340785Supplemental Content