Created
September 6, 2020 13:12
-
-
Save AppleCEO/1f8b826fec754c2f4aa51a02586e6940 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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