import React from 'react' | |
import { ReactWidget } from '@jupyterlab/apputils' | |
import { Provider } from 'react-redux' | |
import store from '../ducks/store' | |
export class ReactAppWidget extends ReactWidget { | |
constructor() { | |
super() | |
} | |
render(): JSX.Element { | |
return ( | |
<Provider store={store}> | |
<AppComponent /> | |
</Provider> | |
) | |
} | |
} | |
// Write all of your React here | |
const AppComponent = (): JSX.Element => { | |
return ( | |
<div> | |
{/* Your app here */} | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment