Skip to content

Instantly share code, notes, and snippets.

@daviseford

daviseford/App.tsx

Created Apr 24, 2020
Embed
What would you like to do?
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