react icon indicating copy to clipboard operation
react copied to clipboard

Replace addons with npm?

Open petehunt opened this issue 12 years ago • 14 comments

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

petehunt avatar Dec 20 '13 08:12 petehunt

YES.. Please, let's do this.

tomocchino avatar Dec 21 '13 00:12 tomocchino

like-stamp

jordwalke avatar Dec 21 '13 08:12 jordwalke

I think this should get high priority since it'll let us expose ReactTestUtils publicly so we can write a doc on testing.

petehunt avatar Dec 30 '13 06:12 petehunt

OK, I just realized that these are already being delivered as part of the react npm package -- going to send a simple PR soon.

petehunt avatar Dec 30 '13 16:12 petehunt

Look forward to the PR and thanks, any docs on testing is welcomed.

newtriks avatar Dec 31 '13 00:12 newtriks

:+1:

plaxdan avatar Jan 27 '14 21:01 plaxdan

shipit

jordwalke avatar Jan 31 '14 09:01 jordwalke

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.

STRML avatar Feb 07 '14 00:02 STRML

:+1:

rockymeza avatar Oct 11 '14 09:10 rockymeza

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.

rektide avatar Jan 19 '15 19:01 rektide

:+1:

jrsnyder avatar Apr 01 '15 16:04 jrsnyder

Addons are being shipped via npm now.

jimfb avatar Oct 15 '15 02:10 jimfb

We haven't dropped the addons build entirely yet though so going to keep this open until we do.

zpao avatar Oct 15 '15 16:10 zpao

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.

gaearon avatar Apr 05 '17 15:04 gaearon