mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Rename App class component to Counter (#1739)
This commit is contained in:
@@ -53,7 +53,7 @@ To prepare a component for assertions, wrap the code rendering it and performing
|
||||
For example, let's say we have this `Counter` component:
|
||||
|
||||
```js
|
||||
class App extends React.Component {
|
||||
class Counter extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {count: 0};
|
||||
|
||||
Reference in New Issue
Block a user