Today I Learned

hashrocket A Hashrocket project

Inline Component Styles With Reason React

If you’ve written much React.js, the following may look familiar:

This is how we do inline styles with JSX in JavaScript.

When it comes to doing inline styles with JSX in our ReasonML code, the best approach for now is to use a make function for styles provided by the React DOM bindings.

source

See More #reasonml TILs