git clone [email protected]:33981014bb69318ead012c11a73eff52.git react-issue-repro
npx static-server
Visit the URL provided by static-server.
- Have React devtools installed
- Visit the URL indicated by static-server
- Click both increment buttons, ensuring that they work
- Open the developer tools
- Navigate to the DevTools Component tree and highlight
<App />
- Click both the increment buttons
- Observe that the normal in-React increment button works
- Observe that the "increment (outside react)" button no longer works
Verification of the issue:
- Open an incognito window
- Visit the URL indicated by static-server
- Click the two buttons and verify that both work
- Open the developer tools (no React Devtools available)
- Verify the two buttons continue to work