Last active
June 7, 2018 19:52
-
-
Save fakenickels/e434bc9258599583e6b41a140029ff32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module type StyledWrapper = {}; | |
let styled = (declarations, componentMake) => { | |
module Styled = { | |
let make = componentMake(~className=(Css.style(declarations))); | |
}; | |
((module Styled): (module StyledWrapper)); | |
}; | |
module Wrapper = (val styled(Css.([padding(px(20))]), (~className) => MD.Grid.make(~className))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment