(props)
| 1675 | |
| 1676 | class Updater extends Component { |
| 1677 | constructor(props) { |
| 1678 | super(props); |
| 1679 | this.state = { i: 0 }; |
| 1680 | |
| 1681 | increment = () => { |
| 1682 | this.setState(({ i }) => ({ i: i + 1 })); |
| 1683 | }; |
| 1684 | } |
| 1685 | |
| 1686 | render(props, { i }) { |
| 1687 | return ( |