mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
6 lines
128 B
JavaScript
6 lines
128 B
JavaScript
function Button({theme, ...rest}) {
|
|
return <button className={theme} {...rest} />;
|
|
}
|
|
|
|
const ThemedButton = withTheme(Button);
|