-
Notifications
You must be signed in to change notification settings - Fork 50k
Closed
Milestone
Description
Right now 'React' is undefined in some of our addons which may depend on it:
- create-class (documented in create-react-class UMD module does not work in AMD environment #9689)
- create-fragment
- react-linked-input
The problem: running these in an AMD environment without React defined globally will lead to the dependency not being found.
Probably this can be solved as follows:
- Manually edit the unminified version, making it work like
react-dom:

- Test by modify requirejs or systemjs fixtures as one-offs to test it specifically. This doesn't need to be committed.
- Submit a PR and a React Core maintainer will rebuild the minified version for you - this is not a process we had intended to repeat so it is not automated in an easy way to reproduce. tag @flarnie and/or @gaearon
Ideally we are not making changes to the addons code, but this is worth doing. If someone wants to work on this I'm happy to review PRs, otherwise will pick it up in the next couple of days.