Created
January 12, 2016 09:02
-
-
Save WaKeMaTTa/447eb494da3f46703a11 to your computer and use it in GitHub Desktop.
Which syntax is more better to use?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MoviesApp extends Component { | |
render() { | |
var initialRoute = {name: 'search'}; | |
return ( | |
<Navigator | |
style={styles.container} | |
initialRoute={initialRoute} | |
configureScene={() => Navigator.SceneConfigs.FadeAndroid} | |
renderScene={RouteMapper} | |
/> | |
); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MoviesApp = React.createClass({ | |
render: function() { | |
var initialRoute = {name: 'search'}; | |
return ( | |
<Navigator | |
style={styles.container} | |
initialRoute={initialRoute} | |
configureScene={() => Navigator.SceneConfigs.FadeAndroid} | |
renderScene={RouteMapper} | |
/> | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found more examples whitten in
syntax-type-2.jsx
but i like moresyntax-type-1.jsx
.Which syntax is more better to use?