Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyReactComponent extends Component {
- constructor(props) {
- super(props);
- this.myTestFunction = this.myTestFunction.bind(this);
- }
- myTestFunction(){
- alert("hello")
- }
- render() {
- return (
- <Page title="My Page"
- primaryAction={{
- content: 'Do Something',
- onAction: this.myTestFunction
- }}
- />
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement