Skip to content

Commit

Permalink
use js instead of jsx in readme code block (#825)
Browse files Browse the repository at this point in the history
to have better syntax highlight
  • Loading branch information
chentsulin authored and aksonov committed Jun 22, 2016
1 parent ae490d9 commit 4e8156c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ npm i react-native-router-flux --save

## Usage
In your top-level `index.js`, define your scenes using the `Scene` component and pass it into the `Router` as children:
```jsx
```js
import {Scene, Router} from 'react-native-router-flux';

class App extends React.Component {
Expand All @@ -81,7 +81,7 @@ class App extends React.Component {
}
```
Alternatively, you could define all of your scenes during compile time and use it later within `Router`:
```jsx
```js
import {Actions, Scene, Router} from 'react-native-router-flux';

const scenes = Actions.create(
Expand All @@ -102,7 +102,7 @@ class App extends React.Component {
```

On any Scene, you can also call the following functions by first importing the `Actions` object:
```jsx
```js
import {Actions} from 'react-native-router-flux'
```
And then:
Expand Down

0 comments on commit 4e8156c

Please sign in to comment.