aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/index.umd.ts
blob: fe78ce4018c06ff31f9ade2755075ec69dacd92b (plain) (blame)
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));
};