Guillermo Guerrero
Alejandro Garcia
Follow us on github:
https://github.com/ryanfox1985
https://github.com/agrcrobles
November 2nd, 2017
Apple | Android
var HelloNameComponent = React.createClass({
render: function(){
return ( Hello, {this.props.name}!
); }
}
);
ReactDOM.render( ,
document.getElementById('app'));
class HelloWorldApp extends Component {
render() {
return ( Hello world! );
}
}
AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);
class LotsOfStyles extends Component {
render() {
return (
just red
just bigblue
);
}
}
const styles = StyleSheet.create({
bigblue: { color: 'blue', fontWeight: 'bold', fontSize: 30, },
red: { color: 'red', }
});
More info: getting-started
return Hi Tarragona ;