Skip to content

Instantly share code, notes, and snippets.

@viniciusdacal
Created March 14, 2017 17:46
Show Gist options
  • Select an option

  • Save viniciusdacal/e39ceb8655f10955e62098f3f1864db9 to your computer and use it in GitHub Desktop.

Select an option

Save viniciusdacal/e39ceb8655f10955e62098f3f1864db9 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return React.createElement(
'div',
{ className: 'App' },
React.createElement(
'div',
{ className: 'App-header' },
React.createElement('img', { src: logo, className: 'App-logo', alt: 'logo' }),
React.createElement(
'h2',
null,
'Welcome to React'
)
),
React.createElement(
'p',
{ className: 'App-intro' },
'To get started, edit ',
React.createElement(
'code',
null,
'src/App.js'
),
' and save to reload.'
)
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment