refactor: use React strict mode (#569)

This commit is contained in:
Brandon Keiji 2025-05-27 21:40:46 +00:00 committed by GitHub
parent 16c16127e7
commit d4ae1ede39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 6 deletions

View File

@ -70,12 +70,14 @@ async function main() {
process.env.CLI_VERSION || readUpResult?.packageJson.version || 'unknown';
render(
React.createElement(App, {
config,
settings,
cliVersion,
startupWarnings,
}),
<React.StrictMode>
<App
config={config}
settings={settings}
cliVersion={cliVersion}
startupWarnings={startupWarnings}
/>
</React.StrictMode>,
);
return;
}