Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Any way to get a reference to React component instantiated within Blaze? #93

Open
DanielHoffmann opened this issue Jun 22, 2015 · 0 comments

Comments

@DanielHoffmann
Copy link

I have a blaze html file like this:

<head>
</head>
<body>
  {{> ReactComponent}}
</body>

I need a reference to that instance of ReactComponent for testing purposes, I don't see any React method to query for components in document.body (React.addons.TestUtils only allows you to query for components inside other components) so I am left wondering how to get that reference.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant