Closed KyleAMathews closed 7 years ago
Yeah, ideally React shouldn't be a dependency but Stilr uses Reacts internal helper lib to convert js objects to css. (See https://github.com/kodyl/stilr/blob/master/lib/utils.js#L1). But if we just extract that we should be good.
:+1:
Perhaps to a standalone module.
Definitely a standalone module. I might have some time to look into it soon. Unless you're up for it?
Super busy with startup + other open source work... wouldn't get to this for a while. On Tue, Jul 21, 2015 at 1:08 PM Chris Kjær notifications@github.com wrote:
Definitely a standalone module. I might have some time to look into it soon. Unless you're up for it?
— Reply to this email directly or view it on GitHub https://github.com/kodyl/stilr/pull/12#issuecomment-123463388.
React .14 did some module splitting... Has anybody looked at this since then?
BTW, Huge +1 here. I wouldn't deploy this to prod until this is handled. Multiple React instances have caused lots of trouble for people.
+1 too ! I can't use it with npm since im on react 0.14, so i must copy source and manually change for react 0.14
I think we can close this on in favor of #31
@webPapaya I'll have a look at your various pull requests and issues, and see if we can cut a beta release without React.
stilr@1.3.0
has just been released, and doesn't depend on react
React isn't needed for this module to work + including React as a dependency means under some conditions it'll get required twice which leads to weird bugs.