Last active
September 29, 2019 16:57
-
-
Save vman/10fdff6b7930fdc26d2ec1bb3a11d938 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 * as React from 'react'; | |
import { IHelloWorldProps } from './IHelloWorldProps'; | |
import { CustomOfficeUiFabricLibrary, ButtonComponent } from 'spfx-lib-ouifr'; | |
export default class HelloWorld extends React.Component<IHelloWorldProps, {}> { | |
private myInstance; | |
constructor(props){ | |
super(props); | |
this.myInstance = new CustomOfficeUiFabricLibrary(); | |
} | |
public render(): React.ReactElement<IHelloWorldProps> { | |
return ( | |
<div> | |
<ButtonComponent | |
primaryButtonText="Primary Button" | |
defaultButtonText= "Default Button" /> | |
</div> | |
); | |
} | |
public componentDidMount(){ | |
console.log(this.myInstance.name()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment