-
Notifications
You must be signed in to change notification settings - Fork 126
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
is it possible to get a rum component by data-reactid attribute value? #48
Comments
No, there’s no standard way. It’s application-specific.
use
|
Does the solution above work? I'm seeing this on the original and a variant that matches what I understand from the React API for .findDOMNode:
|
It’s |
Thanks - I'm probably missing something - but Could it be that .findDOMNode is being called before the element is created, so triggering an Invariant Violation? |
Yes, you should not probably call it during the initial render On Fri, Nov 13, 2015 at 3:40 PM Mike Pearson notifications@github.com
|
OK, thanks. Rum is really neat BTW :) |
For the wayward traveler finding this issue now (react 15.1+) per this SO post it's now
|
I'm working on a mixin that inject styles into component and sub-component
this mixin takes a function that take the component state and return a style hash-map and possibly another hash-map of type sub-element-selector -> style-function and so on
for the moment I use dommy for the sub-element-selectors and get raw HTMLelements , i would like to be able to get the value of the rum element that is mounted on in order to feed the corresponding style-fn. I really hope that it is understandable
Is there a way to get a list of all sub rum components of a rum component?
The text was updated successfully, but these errors were encountered: