Skip to content

Commit bb68917

Browse files
pbxrtvonovak
authored andcommitted
Miss keyword class (#275)
add keyword "class"
1 parent b7936eb commit bb68917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/common-mistakes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const AppNavigator = createSwitchNavigator({
4848
The correct way to write this would be the following:
4949

5050
```javascript
51-
export default App extends React.Component {
51+
export default class App extends React.Component {
5252
render() {
5353
return <AppNavigator />;
5454
}
@@ -72,7 +72,7 @@ const AppNavigator = createSwitchNavigator({
7272
Alternatively, the following would also work because it exposes the `router` static on `AuthenticationScreen` and threads through the `navigation` prop:
7373

7474
```javascript
75-
export default App extends React.Component {
75+
export default class App extends React.Component {
7676
render() {
7777
/* In the root component we are rendering the app navigator */
7878
return <AppNavigator />;

0 commit comments

Comments
 (0)