GithubHelp home page GithubHelp logo

Comments (6)

sebmarkbage avatar sebmarkbage commented on April 20, 2024

This is actually intentional since mutating the real DOM doesn't update React's virtual DOM. In theory we could let you make changes in the DOM and reverse those changes in to the virtual DOM.

However, the virtual DOM is higher level and we can't really reliably infer what changes to the real DOM means at a higher level. Does it mean that the abstraction that generated the node should move or be deleted as well? A custom object can have values other than strings such as objects passed into the style property. We'd have to reverse engineer those style objects.

Changing the output of a component is tricky anyway. As soon as a higher level component rerenders, it will have to try to revert your changes.

It's interesting feedback though. Any particular reason you would prefer to edit your tree in the elements tab instead of the React tab?

from react-devtools.

deepak1556 avatar deepak1556 commented on April 20, 2024

Thanks for the info! these are some of the reasons i prefer to use the elements tab.

  • visual link from elements tab to the rendered page.
  • Setting breakpoints
  • search for nodes by selectors

from react-devtools.

sebmarkbage avatar sebmarkbage commented on April 20, 2024

That's great feedback. So how about we add those three things to the React tab?

from react-devtools.

deepak1556 avatar deepak1556 commented on April 20, 2024

That wld be gr8 👍 ! i just started to look over the code base to get going with the feature implementation.

from react-devtools.

 avatar commented on April 20, 2024

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

from react-devtools.

jaredly avatar jaredly commented on April 20, 2024

Looks like this issue is a "won't fix"
In the new version of devtools you can search for components, and there's a visual link to the rendered page. If there are other features you are missing, let us know!
Also, any element you select in the elements tab will likewise be selected in the react tab.

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.