UNPKG

theme-standard

Version:

Incompatibility of global CSS Selectors and Components results in various ways we style our Components. It devides our community into 3 categories:

16 lines (13 loc) 333 B
import useTheme from './useTheme' import Button from './Button' import theme from './theme.json' // ThemedButton component has a Theme already built in, we don't need to pass it // every time. const ThemedButton = useTheme(Button, theme) export default function App() { return ( <div> <ThemedButton /> </div> ) }