We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 021bc87 commit 8c9d8c1Copy full SHA for 8c9d8c1
src/App.js
@@ -35,10 +35,21 @@ class App extends Component {
35
};
36
37
render() {
38
+
39
+ const style = {
40
+ backgroundColor: 'white',
41
+ font: 'inherit',
42
+ border: '1px solid blue',
43
+ padding: '8px',
44
+ cursor: 'pointer'
45
+ };
46
47
return (
48
<div className="App">
49
<h1>Hi, I'am React App</h1>
- <button onClick={() => this.switchNameHandler('Bobby')}>Switch name</button>
50
+ <button
51
+ style={style}
52
+ onClick={() => this.switchNameHandler('Bobby')}>Switch name</button>
53
<Person
54
name={this.state.persons[0].name}
55
age={this.state.persons[0].age} />
0 commit comments