import React from 'react' ; import Console from './Console' ; import ConsoleContext from './consoleContext' ; import ConsoleContextProvider from './consoleContextProvider' ; export default function Index ( ) { const [ ctx ] = React . useState ( ( ) => { return new ConsoleContext ( ) ; } ) ; return ( < ConsoleContextProvider value = { ctx } > < Console /> < /ConsoleContextProvider>); }