-
Notifications
You must be signed in to change notification settings - Fork 66
Added ReactCSSTransitionGroup #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for putting together this PR. Overall, I think the code looks good. I do have a few comments, but I can touch on those later. Primarily, I am torn on if this addition would be better as an independent library. Originally, I didn't realize it would impose a dependency on I think it would be ideal if |
I don't know the answer as to whether it's still If it's not |
I am digging the umbrella repo idea. I am just throwing this out there, but we could even make |
So, at least when using webpack, the add-ons are not |
I like the idea of an umbrella repo, but it would be important to keep things in sync. I'm fine with moving this to a separate repo, or having it here if we think it's more likely to be updated that way. |
My vote is for creating separate repos for the addons and then creating an umbrella repo to make an all-in-one package. One main reason I am leaning toward this approach is because I did a quick test with I propose that we either create a In terms of the PR, I had a few comments I wanted to open up for discussion:
|
Given that psc-bundle might throw an error (in the absence of an entry point), I agree that we should have separate repos under an umbrella; with separate repos for each add-on (as the npm modules are distinct). Re: Comment 1: I didn't use Re: Comment 2: See comment 3 concerning Re: Comment 3: I considered using Re: Comment 4: I chose |
Ultimately, I don't have strong opinions on any of this stuff. :) My interest is only in having the library wrap as much of React as possible, since we are using it in production. |
Thanks for the info. Regarding Comment 1, I would not be opposed to using the module Foo (reactCSSTransitionGroup) where
import Prelude ((<<<))
import React (ReactClass(), ReactElement(), createElementDynamic)
import React.DOM.Props (Props(), unsafeFromPropsArray)
reactCSSTransitionGroup :: Array Props -> Array ReactElement -> ReactElement
reactCSSTransitionGroup = createElementDynamic reactCSSTransitionGroupClass <<< unsafeFromPropsArray
foreign import reactCSSTransitionGroupClass :: forall props. ReactClass props And then in the FFI: // module Foo
exports.reactCSSTransitionGroupClass = require('react-addons-css-transition-group'); Comment 4: Makes sense. The module as you have it works. Perhaps my only suggest would maybe to go with the prefix Thank you for all of your work on this. I suppose it would make sense to either create a repo |
That'll work. I'll make the changes this afternoon. |
Great. Thanks! On Saturday, 19 March 2016, jasonzoladz notifications@github.com wrote:
|
Thanks for edits. It's better. Updated and rebased. (I decided to ditch |
Would you like me to create a repo in This all looks good to me 👍 |
"use strict"; | ||
|
||
// module React.Addons.Animation.Transition | ||
var React = require('react'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am just wondering if the require statement for react is necessary here?
The changes look good to me. I just had one comment above. Thanks for making these updates @jasonzoladz. @paf31 I propose that we create |
Unused import removed. I'd vote to start with the org, or move to it pretty soon, as we have |
Sorry about the delay here. Maybe to get things rolling we can create a repo in @paf31 Can you please create @jasonzoladz Once we have this set up, can you please push the contents of this PR there? I hope this sounds good to everyone. I do think having an org |
Sounds good. Will do. |
Here you go, thanks. |
Thanks! |
Pushed to new repo. Eric and Phil, thanks for all your work on this stuff. It's fantastic to be able to avoid TypeScript and its ubiquitous |
Great! Thank you as well for putting all of this together. |
No description provided.