From 4e8156c06fbb93e16e8a84ae2155c12ea49b4e48 Mon Sep 17 00:00:00 2001 From: "C. T. Lin" Date: Wed, 22 Jun 2016 22:57:18 +0800 Subject: [PATCH] use js instead of jsx in readme code block (#825) to have better syntax highlight --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1336a5b2..cad5fa929 100644 --- a/README.md +++ b/README.md @@ -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 { @@ -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( @@ -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: