[system] initColorSchemeScript.tsx uses var instead of let #43418
Labels
enhancement
This is not a bug, nor a new feature
package: system
Specific to @mui/system
priority: low
To delay as much as possible
ready to take
Help wanted. Guidance available. There is a high chance the change will be accepted
Summary
We use
var
:material-ui/packages/mui-system/src/InitColorSchemeScript/InitColorSchemeScript.tsx
Line 95 in 9f4b846
but this seems confusing. Why not
let
? For example, https://github.com/pacocoursey/next-themes/blob/bf0c5a45eaf6fb2b336a6b93840e4ec572bc08c8/next-themes/src/script.ts#L14 who use modern syntax.Using let over var seems to have two benefits:
var
.Motivation
I was confused by this looking into #43416.
The text was updated successfully, but these errors were encountered: