Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was 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

@DanielHoffmann

Description

@DanielHoffmann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions