aboutsummaryrefslogblamecommitdiffstats
path: root/packages/instant/src/index.umd.ts
blob: f648b37f298ddb27d8bcc1d6365b393e30068fd0 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                      
                                                                 
                                                            
 
                                                                                                             

                                                                                                 
import * as React from 'react';
import * as ReactDOM from 'react-dom';

import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR } from './constants';
import { ZeroExInstant, ZeroExInstantProps } from './index';

export const render = (props: ZeroExInstantProps, selector: string = DEFAULT_ZERO_EX_CONTAINER_SELECTOR) => {
    ReactDOM.render(React.createElement(ZeroExInstant, props), document.querySelector(selector));
};