resizeReducer() — react Function Reference
Architecture documentation for the resizeReducer() function in Components.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 0b9294ee_b428_347f_c1ce_102c44aa6de9["resizeReducer()"] a2fac529_5caa_fd15_61d0_e5b11d75bdd2["Components.js"] 0b9294ee_b428_347f_c1ce_102c44aa6de9 -->|defined in| a2fac529_5caa_fd15_61d0_e5b11d75bdd2 style 0b9294ee_b428_347f_c1ce_102c44aa6de9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/devtools/views/Components/Components.js lines 202–217
function resizeReducer(state: ResizeState, action: ResizeAction): ResizeState {
switch (action.type) {
case 'ACTION_SET_HORIZONTAL_PERCENTAGE':
return {
...state,
horizontalPercentage: action.payload,
};
case 'ACTION_SET_VERTICAL_PERCENTAGE':
return {
...state,
verticalPercentage: action.payload,
};
default:
return state;
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does resizeReducer() do?
resizeReducer() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/views/Components/Components.js.
Where is resizeReducer() defined?
resizeReducer() is defined in packages/react-devtools-shared/src/devtools/views/Components/Components.js at line 202.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free