Browse Source

Fix syntax

main
Alex Krolick 7 years ago
parent
commit
8437e3767b
  1. 2
      examples/context/theme-detailed-themed-button.js

2
examples/context/theme-detailed-themed-button.js

@ -6,7 +6,7 @@ function ThemedButton(props) {
<ThemeContext.Consumer> <ThemeContext.Consumer>
{theme => ( {theme => (
<button <button
{this.props} {...props}
style={{backgroundColor: theme.background}} style={{backgroundColor: theme.background}}
/> />
)} )}

Loading…
Cancel
Save