Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 10, 2020 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/2ad8895ab455d480d921417f38fd164d to your computer and use it in GitHub Desktop.
Save velotiotech/2ad8895ab455d480d921417f38fd164d to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { render } from 'react-dom';
import Basic from './Basic';
import './style.css';
class App extends Component {
constructor() {
super();
this.state = {
name: 'React'
};
}
render() {
return (
<div>
<Basic />
</div>
);
}
}
render(<App />, document.getElementById('root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment