Skip to content

Instantly share code, notes, and snippets.

@jslnriot
Last active June 23, 2019 22:09
Show Gist options
  • Save jslnriot/b3af3ec07538c5e0a1841c50ba274a00 to your computer and use it in GitHub Desktop.
Save jslnriot/b3af3ec07538c5e0a1841c50ba274a00 to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
example: 'test'
};
}
render() {
return (
<div>
Display stuff like state .....
{this.state.example}
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment