You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I would like to kindly request the distribution of an ECMAScript module (ESM) version of the React library on npm. Currently, React is available in UMD and CommonJS formats, but having an ESM version would greatly benefit developers who prefer or require this module format.
Benefit of ESM Distribution:
Description:
Hello, Facebook/React team! I hope you're doing well. I would like to kindly request the distribution of an ECMAScript module (ESM) version of the React library on npm. Currently, React is available in UMD and CommonJS formats, but having an ESM version would greatly benefit developers who prefer or require this module format.
Benefit of ESM Distribution: Simpler Import Syntax: ESM provides a simpler and more streamlined import syntax, allowing developers to use the import statement directly. This can make the codebase cleaner and more readable.
Better Compatibility with Modern Tools: Many modern build tools, bundlers, and frameworks have excellent support for ESM. By distributing React as an ESM, it would align with the ecosystem and make it easier to integrate with these tools.
Future-Proofing: ESM is the standardized module format in ECMAScript, and its usage is growing rapidly. By providing an ESM version of React, you would future-proof the library and ensure it remains compatible and accessible to developers as the ecosystem evolves.
i tried using jsfiddle /+esm feature that you append at the end, but it seems like react-dom wants to find React on the global scope.
it seems to work okey with react but not for react-dom
I understand that distributing React as an ESM might involve some changes and considerations on your end, but I believe the benefits outweigh the effort. Many developers would greatly appreciate this addition to the React ecosystem. Thank you for your consideration!
The text was updated successfully, but these errors were encountered:
Description:
I would like to kindly request the distribution of an ECMAScript module (ESM) version of the React library on npm. Currently, React is available in UMD and CommonJS formats, but having an ESM version would greatly benefit developers who prefer or require this module format.
Benefit of ESM Distribution:
Description:
Hello, Facebook/React team! I hope you're doing well. I would like to kindly request the distribution of an ECMAScript module (ESM) version of the React library on npm. Currently, React is available in UMD and CommonJS formats, but having an ESM version would greatly benefit developers who prefer or require this module format.
Benefit of ESM Distribution:
Simpler Import Syntax: ESM provides a simpler and more streamlined import syntax, allowing developers to use the
import
statement directly. This can make the codebase cleaner and more readable.Better Compatibility with Modern Tools: Many modern build tools, bundlers, and frameworks have excellent support for ESM. By distributing React as an ESM, it would align with the ecosystem and make it easier to integrate with these tools.
Future-Proofing: ESM is the standardized module format in ECMAScript, and its usage is growing rapidly. By providing an ESM version of React, you would future-proof the library and ensure it remains compatible and accessible to developers as the ecosystem evolves.
I would love it if i could do something like:
and then import it like noramlly:
i tried using jsfiddle
/+esm
feature that you append at the end, but it seems like react-dom wants to findReact
on the global scope.it seems to work okey with react but not for
react-dom
I understand that distributing React as an ESM might involve some changes and considerations on your end, but I believe the benefits outweigh the effort. Many developers would greatly appreciate this addition to the React ecosystem. Thank you for your consideration!
The text was updated successfully, but these errors were encountered: