We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i.e. if you use ref to get the id of say a "div" then you can't say ref["my_div"].dom_node as you would expect.
class Foo < React::Component::Base after_mount do refs[:my_div].dom_node # is nil! end def render div(ref: :my_div) { "no can do" } end end
seems like the ref is pointing some ruby object which is just a simple wrapper around the native object... not sure how to solve.
For now work around is to do this:
`React.findDOMNode(#{refs[:my_div].to_n})` # === refs[:my_div].dom_node
The text was updated successfully, but these errors were encountered:
This issue was moved to ruby-hyperloop/hyper-react#110
Sorry, something went wrong.
No branches or pull requests
i.e. if you use ref to get the id of say a "div" then you can't say ref["my_div"].dom_node as you would expect.
seems like the ref is pointing some ruby object which is just a simple wrapper around the native object... not sure how to solve.
For now work around is to do this:
The text was updated successfully, but these errors were encountered: