mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 20:01:57 +00:00
8 lines
176 B
JavaScript
8 lines
176 B
JavaScript
function Button({theme, ...rest}) {
|
|
// highlight-next-line
|
|
return <button className={theme} {...rest} />;
|
|
}
|
|
|
|
// highlight-next-line
|
|
const ThemedButton = withTheme(Button);
|