Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Components displayed as <Unknown ... /> when declaring js variables at the top. #20

@tiengtinh

Description

@tiengtinh

I'm using grunt task to first build *.jsx files from *.coffee, and then build *.jsx to *.js files.
Therefore, my *.js files would be something like

var PhotoListWrapperView, PhotoListView,  PhotoView;
...
PhotoListWrapperView = React.createClass({
...
});

And with this js style, when I inspected into the React tab in Chrome, things displayed like:

<Top Level>
    <Unknown data="...">...</Unknown>
</Top Level>

When I tried to manually change the js variable declaration style to var PhotoListWrapperView = React.createClass({... , React inspection displayed correctly.

Look like declaring like var PhotoListWrapperView is a must for the tool to work. This may lead to some inconveniences. My case is an example.

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