Code calls a React API that React 18 deprecated or React 19 removed
What it finds
ReactDOM.render, hydrate and unmountComponentAtNode were replaced by createRoot and hydrateRoot; React.createFactory, React.PropTypes and renderToNodeStream are gone. Code using them breaks on upgrade and does not get concurrent rendering.
Reported are calls of these functions through ReactDOM, React or ReactDOMServer, and reads of React.PropTypes.
From the rule's source, react_api_gone_in_v19.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:react-api-gone-in-v19" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:react-api-gone-in-v19] reason="..."tx0 explain tx0/ts:react-api-gone-in-v19 shows the same in the terminal. Found a false positive? Report it.