-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
Wrapper component in SPAN #480
Comments
@BrunoQuaresma Why would you do that? Check the react docs if that is possible. I don't think it is. I'd recommend just configuring the styling of the div to act like a span. You can do that. |
In react-rails gem has the option
|
Hi @BrunoQuaresma, I updated the README.md. |
Thanks @justin808 ! |
Hi all, @BrunoQuaresma @justin808 I think it would be great to have the ability to choose which element use as wrapper, as react-rails does. I used the Eg: I want to have a react component as an item in a bootstrap navbar-nav, the css rule is: With react-rails I always used the What do you think? |
@risinglf Please open a new issue if you feel strongly about this. Please include info about why this is worth the extra complexity. |
@justin808 Hi, I hit the same issue as @risinglf and I got quite a strong case why such feature is necessary. I render my component enclosed in |
@argasek I can review a PR to add this. Should be easy to make the change to allow an option for that. See https://github.com/shakacode/react_on_rails/blob/master/CONTRIBUTING.md for details. If you don't have time for a PR, I can do this for you in the context of our services work. |
@justin808 Please review my PR: #1208 regarding this. Thanks |
Is possible i wrapper my component in span instead div?
The text was updated successfully, but these errors were encountered: