We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting a no-deprecated eslint error for the following:
no-deprecated
const { renderToString } = require('react-dom/server');
None for ESM imports though:
import { renderToString } from 'react-dom/server';
This should not trigger a no-deprecated linting error:
v7.33.0
v8.45.0
v18.12.1
The text was updated successfully, but these errors were encountered:
Indeed, React.renderToString is what's deprecated, not ReactDOMServer.renderToString.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Description Overview
I'm getting a
no-deprecated
eslint error for the following:None for ESM imports though:
Expected Behavior
This should not trigger a
no-deprecated
linting error:eslint-plugin-react version
v7.33.0
eslint version
v8.45.0
node version
v18.12.1
The text was updated successfully, but these errors were encountered: