Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use js instead of jsx in readme code block #825

Merged
merged 1 commit into from
Jun 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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