Last active
January 9, 2019 11:01
-
-
Save michaelneu/ac42a7b405ab7f78087fd21fb71fd329 to your computer and use it in GitHub Desktop.
Color context sensitive styled-components HoC
This file contains 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
import React from "react"; | |
import { withButtonStyle } from "button.js" | |
const Button = (text) => ( | |
<button style={{ color: black; }}>{text}</button> | |
); | |
export default withButtonStyle(Button); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment