Created
April 24, 2020 13:49
-
-
Save daviseford/9a866103b79a07d78246daefe4c04ff7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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