-
-
Save tygas/b5c27a77578300f9ebff73820ce4f572 to your computer and use it in GitHub Desktop.
This file contains 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
import React, { Component } from 'react'; | |
class WidgetApp extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { isOpen: false }; | |
} | |
toggleModal = () => { | |
this.setState({ | |
isOpen: !this.state.isOpen, | |
}); | |
}; | |
render() { | |
return ( | |
<div> | |
<p>I am a Widget - <a href={'/selvbetjening'}>Selvbetjening</a></p> | |
<button onClick={e => { this.toggleModal(e); }}> | |
Open th | |
</button> | |
</div> | |
); | |
} | |
} | |
export default WidgetApp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment