-
Notifications
You must be signed in to change notification settings - Fork 20
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
allow to pass value as props #34
Comments
Hi, Currently, whatever is passed in // src/generator.js:
this.args[0] = this.props.children; Would you like to submit a pull request with such change? |
I'll do so ! |
Hi @fdecampredon. Are you still interested in working on this? |
I had the same question. I'd love to see this implemented. Basically, use |
I actually think that you should only allow |
👍 to that |
@gnarf I see you have a preference, but the motivation isn't clear to me. Using a value attribute instead of children might be convenient in the given example (I agree), but using the opposite (children instead of a value attribute) might be convenient in other cases like: <FormatMessage>You’re receiving notifications because you commented</FormatMessage> I hold my preference for "use PRs are still very welcome. Thanks |
I agree with @rxaviers here. I am working on adding some initial tests to the repo (PR almost ready) and then I will add this "use |
can feel a bit awkward could this module also support this api ?
The text was updated successfully, but these errors were encountered: