Browse Source

Prettier

main
Alex Krolick 7 years ago
parent
commit
b0e860404b
  1. 2
      examples/context/reference-caveats-problem.js
  2. 6
      examples/context/reference-caveats-solution.js

2
examples/context/reference-caveats-problem.js

@ -5,6 +5,6 @@ class App extends React.Component {
<Provider value={{something: 'something'}}>
<Toolbar />
</Provider>
)
);
}
}

6
examples/context/reference-caveats-solution.js

@ -2,8 +2,8 @@ class App extends React.Component {
constructor(props) {
// highlight-range{2}
this.state = {
value: {something: 'something'}
}
value: {something: 'something'},
};
}
render() {
@ -12,6 +12,6 @@ class App extends React.Component {
<Provider value={this.state.value}>
<Toolbar />
</Provider>
)
);
}
}

Loading…
Cancel
Save