UNPKG

@dunite/au-fluent-ui

Version:

An Aurelia plugin project that wraps Microsoft Fluent UI React components.

34 lines (27 loc) 921 B
// import * as React from 'react'; // export class ReactSimpleWrapper extends React.Component { // reactClass: any; // aureliaHost: any; // constructor(props: any) { // super(props); // this.state = {...props}; // this.reactClass = props.reactClass; // this.aureliaHost = props.aureliaHost; // } // componentWillUnmount() { // if (typeof this.aureliaHost.reactComponentWillUnmount === 'function') { // this.aureliaHost.reactComponentWillUnmount(); // } // } // componentDidMount() { // if (typeof this.aureliaHost.reactComponentDidMount === 'function') { // this.aureliaHost.reactComponentDidMount(); // } // } // render() { // return React.createElement( // this.reactClass, // this.state // ); // } // }