mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 11:52:00 +00:00
Prettier
This commit is contained in:
@@ -4,7 +4,9 @@ class Example extends React.Component {
|
||||
renderValue = value => {
|
||||
return (
|
||||
<div>
|
||||
Context value:{value}. Props value:{this.props.counter}
|
||||
Context value:{value}. Props value:{
|
||||
this.props.counter
|
||||
}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -6,7 +6,9 @@ class Example extends React.Component {
|
||||
<Ctx.Consumer>
|
||||
{value => (
|
||||
<div>
|
||||
Context value:{value}. Props value:{this.props.counter}
|
||||
Context value:{value}. Props value:{
|
||||
this.props.counter
|
||||
}
|
||||
</div>
|
||||
)}
|
||||
</Ctx.Consumer>
|
||||
|
||||
Reference in New Issue
Block a user