Skip to content

Commit 2dde85f

Browse files
authored
Update example usage
1 parent fa26a3e commit 2dde85f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,15 @@ import translations from './translations.json'
6060
import MyComponent from './MyComponent'
6161
import MyOtherComponent from './MyOtherComponent'
6262

63-
class App extends Component {
64-
render () {
65-
return (
66-
<MessageSource.Provider value={translations}>
67-
<MyComponent />
68-
<MyOtherComponent />
69-
</MessageSource.Provider>
70-
)
71-
}
63+
export default function App() {
64+
return (
65+
<MessageSource.Provider value={translations}>
66+
<MyComponent />
67+
<MyOtherComponent />
68+
</MessageSource.Provider>
69+
)
7270
}
71+
7372
```
7473
## License
7574

0 commit comments

Comments
 (0)