react/packages/react-devtools-shell
Sam Zhou 45804af18d
[flow] Eliminate usage of more than 1-arg React.AbstractComponent in React codebase (#31314)
<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn test --debug --watch TestName`,
open `chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

In order to adopt react 19's ref-as-prop model, Flow needs to eliminate
all the places where they are treated differently.
`React.AbstractComponent` is the worst example of this, and we need to
eliminate it.

This PR eliminates them from the react repo, and only keeps the one that
has 1 argument of props.

## How did you test this change?

yarn flow
2024-10-21 16:17:41 -07:00
..
src [flow] Eliminate usage of more than 1-arg React.AbstractComponent in React codebase (#31314) 2024-10-21 16:17:41 -07:00
constants.js chore[devtools]: upgrade to webpack v5 (#26887) 2023-06-14 13:15:52 +01:00
e2e-regression.html DevTools] e2e Regression Testing App (#24619) 2022-05-26 11:36:00 -04:00
e2e.html Refactored DevTools test shell for e2e (#22968) 2021-12-15 11:42:59 -05:00
index.html [DevTools] add perf regression test page in shell (#25078) 2023-01-04 17:31:13 -05:00
multi.html DevTools: Support mulitple DevTools instances per page (#22949) 2021-12-14 12:16:16 -05:00
package.json chore[devtools]: upgrade to webpack v5 (#26887) 2023-06-14 13:15:52 +01:00
perf-regression.html [DevTools] add perf regression test page in shell (#25078) 2023-01-04 17:31:13 -05:00
README.md Add details in READMEs for react-devtools local developement (#24148) 2022-03-24 10:04:12 -04:00
webpack-server.js chore[react-devtools]: unify console patching and default to ansi escape symbols (#29869) 2024-06-17 16:31:36 +01:00

Harness for testing local changes to the react-devtools-inline and react-devtools-shared packages.

Development

This target should be run in parallel with the react-devtools-inline package. The first step then is to run that target following the instructions in the react-devtools-inline README's local development section.

The test harness can then be run as follows:

cd packages/react-devtools-shell

yarn start

Once you set both up, you can view the test harness with inlined devtools in browser at http://localhost:8080/