import { createReactComponent } from './react-component-lib' ; import { JSX } from 'component-library' ; import { defineCustomElements , applyPolyfills } from 'component-library/loader' ; applyPolyfills ( ) . then ( ( ) => { defineCustomElements ( window ) ; } ) ; export const DemoComponent = createReactComponent < JSX . DemoComponent , HTMLDemoComponentElement > ( 'demo-component' ) ;