Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Element extends React.Component {
- state = {
- text:'Hola Mundo!'
- }
- componentDidMount(){
- console.log('mounted');
- }
- render(){
- return(
- <h1>{this.state.text}</h1>
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement