1 2 3 4 5 6 7 8 9 10
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { ZeroExInstant } from './index'; export interface ZeroExInstantOptions {} export const render = (props: ZeroExInstantOptions, selector: string = '#zeroExInstantContainer') => { ReactDOM.render(React.createElement(ZeroExInstant, props), document.querySelector(selector)); };