Skip to content

Instantly share code, notes, and snippets.

@geraldodev
Last active April 25, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geraldodev/c16434b4887823bf3645fd0b02506bce to your computer and use it in GitHub Desktop.
Save geraldodev/c16434b4887823bf3645fd0b02506bce to your computer and use it in GitHub Desktop.
Bare translation of the bits I needed from react-jss/lib/JssProvider just to integrate with bs-material-ui
[@bs.module "react-jss/lib/JssProvider"]
external myJssProvider : ReasonReact.reactClass = "default";
let make = (~jss: InsertionPoint.jssObj, ~generateClassName: string, children)=>
ReasonReact.wrapJsForReason(
~reactClass=myJssProvider,
~props={ "jss": jss, "generateClassName": generateClassName},
children,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment