App.tsx
└── src
├── App.tsx
The App.tsx
file contains the root component of the application App
(it comes with the default react template project).
The role of this component is to wrap the main panel component <MainPanel />
with constate context providers. It should at least be wrapped with the Settings
, Taquito
, Beacon
and Contract
contexts, as illustrated below:
function App() {
return (
<div className="App">
<CssBaseline />
<SettingsProvider>
<TaquitoProvider>
<BeaconProvider>
<ContractProvider>
<MainPanel />
</ContractProvider>
</BeaconProvider>
</TaquitoProvider>
</SettingsProvider>
</div>
);
}