GithubHelp home page GithubHelp logo

Comments (8)

sophiebits avatar sophiebits commented on April 19, 2024

Are you using jsx from React 0.9? It should set the displayName property appropriately.

from react-devtools.

kendagriff avatar kendagriff commented on April 19, 2024

I'm using JSX for mimicking HTML, but as I understand it, JSX cannot take nested object names for components, right?

from react-devtools.

sophiebits avatar sophiebits commented on April 19, 2024

The JSX compiler transforms your original code into

Game.Views.Page = React.createClass({displayName: 'Page',
  render: function() {
    return (
      React.DOM.section( {className:"page"}, "Hello, World")
    );
  }
});

The displayName property allows the dev tools to show the right component name.

from react-devtools.

sophiebits avatar sophiebits commented on April 19, 2024

There's currently no way to use a namespaced component from JSX without bringing it into local scope though. See facebook/react#760 for some discussion on this.

from react-devtools.

kendagriff avatar kendagriff commented on April 19, 2024

Thanks, Ben. I hope they introduce that.

Yes, it's adding the displayName property, however, the React tab in Chrome
DevTools is still as empty as can be. Am I missing something obvious?

On Thu, Mar 6, 2014 at 12:18 PM, Ben Alpert [email protected]:

There's currently no way to use a namespaced component from JSX without
bringing it into local scope though. See facebook/react#760https://github.com/facebook/react/pull/760for some discussion on this.


Reply to this email directly or view it on GitHubhttps://github.com//issues/27#issuecomment-36925395
.

Kendall
Co-Founder, Banzai
[email protected] | 435.503.1462

from react-devtools.

sophiebits avatar sophiebits commented on April 19, 2024

See https://github.com/facebook/react-devtools#the-react-tab-is-blank -- does that solve your problem?

from react-devtools.

jaredly avatar jaredly commented on April 19, 2024

Is this still an issue?

from react-devtools.

kassens avatar kassens commented on April 19, 2024

Please open a new issue if this is still a problem. We've since launched a new version of the devtools on the Chrome store (it should've auto-updated already).

from react-devtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.