initResizeState() — react Function Reference
Architecture documentation for the initResizeState() function in Components.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD e1a47502_1748_949d_6bf6_d264478fe042["initResizeState()"] a2fac529_5caa_fd15_61d0_e5b11d75bdd2["Components.js"] e1a47502_1748_949d_6bf6_d264478fe042 -->|defined in| a2fac529_5caa_fd15_61d0_e5b11d75bdd2 style e1a47502_1748_949d_6bf6_d264478fe042 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/devtools/views/Components/Components.js lines 183–200
function initResizeState(): ResizeState {
let horizontalPercentage = 0.65;
let verticalPercentage = 0.5;
try {
let data = localStorageGetItem(LOCAL_STORAGE_KEY);
if (data != null) {
data = JSON.parse(data);
horizontalPercentage = data.horizontalPercentage;
verticalPercentage = data.verticalPercentage;
}
} catch (error) {}
return {
horizontalPercentage,
verticalPercentage,
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does initResizeState() do?
initResizeState() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/views/Components/Components.js.
Where is initResizeState() defined?
initResizeState() is defined in packages/react-devtools-shared/src/devtools/views/Components/Components.js at line 183.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free