The postinstall hook deletes React directories from the package’s local node_modules without an explicit user request. The targets are narrowly scoped and align with declared peer dependencies, but the automatic cleanup carries a risk of breaking dependency resolution.
Static reason
One or more suspicious static signals were detected.
Trigger
Runs automatically during postinstall.
Impact
Can delete nested React packages needed by the installation; the package declares these as peer dependencies, suggesting the cleanup may aim to avoid duplicate copies.
Mechanism
Executes rm -rf on node_modules/react and node_modules/react-dom, suppressing errors.
Evidence
package.jsonnode_modules/reactnode_modules/react-dom