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