Skip to content

Instantly share code, notes, and snippets.

View arvinio's full-sized avatar
🔥

Arvin Behshad arvinio

🔥
View GitHub Profile
@arvinio
arvinio / state.js
Last active April 9, 2017 13:52
Hot Reloading does not update state
export default class NameForm extends Component {
constructor(){
super()
this.state = {initalName: "Arvin"}
}
render() {
return (
<View>
<TextInput
@arvinio
arvinio / App.js
Last active April 8, 2017 13:23
React with ES6
/*
Before: Without ES6
*/
var App = React.createClass({
getInitialState : function() {
return {
fishes : {},
order : {}
},
//...