Skip to content

Instantly share code, notes, and snippets.

@AppleCEO
Created September 6, 2020 13:12
Show Gist options
  • Save AppleCEO/1f8b826fec754c2f4aa51a02586e6940 to your computer and use it in GitHub Desktop.
Save AppleCEO/1f8b826fec754c2f4aa51a02586e6940 to your computer and use it in GitHub Desktop.
class Codelab extends React.Component {
render() {
let text = "Hi I am codelab";
let stylegg = {
backgroundColor: 'aqua'
};
return (
<div style={stylegg}>{text}</div>
);
}
}
class App extends React.Component {
render() {
return (
<Codelab/>
);
}
}
ReactDOM.render(<App/>,document.getElementById('root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment