Replace addons with npm?
Can we break out the following into separate npm modules and ditch the addons build? We could use wzrd.in to deliver them.
- ReactTransitionGroup
- classSet
- ReactLink
- TapEventPlugin
- ResponderEventPlugin
- ReactStateSetters
- ReactTestUtils
YES.. Please, let's do this.
like-stamp
I think this should get high priority since it'll let us expose ReactTestUtils publicly so we can write a doc on testing.
OK, I just realized that these are already being delivered as part of the react npm package -- going to send a simple PR soon.
Look forward to the PR and thanks, any docs on testing is welcomed.
:+1:
shipit
I've separated out the addon JS into react-addons for easy inclusion into browserify projects. I was previously getting invariant violations when using react/addons in some parts of the app and react in others - this appears to fix it in a lightweight fashion. The version corresponds to React version the files were pulled from.
:+1:
Would love to see the react/addons build deprecated. Some of our browserify builds have mad special sauce in them (--exclude react/addons --require ./node_modules/react/dist/react-with-addons.js:react/addons) that other browserify-based tools cannot replicate (mochify); it's a frustrating situation to be in and having a consistent entrance point into react and react-addons would reduce this conflict and turmoil.
:+1:
Addons are being shipped via npm now.
We haven't dropped the addons build entirely yet though so going to keep this open until we do.
We are doing it with 16 (it’s already gone from master). We’ll update the docs before the release but since there’s more to update there, I won’t use this issue to track them.