principal engineer, react person, super gay, still masking
if you’re seeing it IRL then idk maybe something else
if you’re seeing it IRL then idk maybe something else
function App() {
const [theme, setTheme] = useState();
return (
<ThemeContext value={theme}>
<MainContent route={…} />
</ThemeContext>
);
}
then you want MainContent to have a memo()…
function App() {
const [theme, setTheme] = useState();
return (
<ThemeContext value={theme}>
<MainContent route={…} />
</ThemeContext>
);
}
then you want MainContent to have a memo()…