From 7ad04d27efd220791bbe0672be92c3e463858db2 Mon Sep 17 00:00:00 2001 From: Mr Date: Mon, 19 Aug 2019 07:49:37 -0700 Subject: [PATCH] fix the description of access state value (#132) --- step1-04/demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/step1-04/demo/README.md b/step1-04/demo/README.md index 65738b1..644a18c 100644 --- a/step1-04/demo/README.md +++ b/step1-04/demo/README.md @@ -182,7 +182,7 @@ class Counter extends React.Component { - The constructor takes in the component's `props`. - The [`super()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super) function calls the constructor of the parent class (in this case `React.Component`). -- Our `counter` state value can now be accessed via `this.state.counter`. Later, we can update state by calling `this.setState({ counter: 1 })`. +- Our `clicks` state value can now be accessed via `this.state.clicks`. Later, we can update state by calling `this.setState({ clicks: 1 })`. ### Rendering our Counter