Skip to content

Commit 903601c

Browse files
committed
Update README.md
es6 style
1 parent 31ab188 commit 903601c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class HelloPage extends React.Component {
3434

3535
}
3636

37-
var styles = StyleSheet.create({
37+
const styles = StyleSheet.create({
3838
header: {
3939
backgroundColor: '#5cafec',
4040
},
@@ -43,7 +43,7 @@ var styles = StyleSheet.create({
4343
// Your route object should contain at least:
4444
// - The name of the route (which will become the navigation bar title)
4545
// - The component object for the page to render
46-
var firstRoute = {
46+
const firstRoute = {
4747
name: 'Welcome!',
4848
component: HelloPage,
4949
};

0 commit comments

Comments
 (0)