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