How to use style in JSX?


#1

Hi all
How to use style attribute? For example:

<nav className="navbar navbar-light" style="background-color: #e3f2fd;">
  <!-- Navbar content -->
</nav>

Thanks


#2

You use it like

<div style=(
  ReactDOMRe.Style.make(~color="#444444", ~fontSize="68px", ())
)/>

tho I’m preferring bs-css instead


#3

You can find the Style.make's supported params here