GithubHelp home page GithubHelp logo

hhy5277 / react-sight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from react-sight/react-sight

0.0 2.0 0.0 6.7 MB

Visualization tool for React, with support for Fiber, Router (v4), and Redux

JavaScript 79.64% CSS 12.12% HTML 8.25%

react-sight's Introduction

React Sight

React Sight is a live view of the component hierarchy tree of your React application with support for React Router and Redux.

We are currently working on squashing bugs related to fiber

Set Up | Install From Chrome Store

  1. Make sure you've added React Dev Tools to Chrome.

  2. Install React Sight from the Chrome web store

  3. If you are running local file URLs, make sure to enable "Allow access to file URLs" in the extension settings for both React Dev Tools and React Sight

  4. Run your React application, or open (almost!) any website running React!

  5. Open Chrome Developer Tools (cmd+opt+j) -> React Sight panel

Building Your Own Version

If you'd like to build your own version of React Sight:

  1. Clone the repo and npm install dependancies

  2. Use npm start to generate the build

  3. In Chrome, open the extensions tab and click 'Load Unpacked Extension'. Load the folder '~/ReactSight/chrome-ext'

If you have any additional questions send us a message at [email protected] :)

Usage

Hover over nodes to see their state and props in the side panel.

Hide DOM elements, Redux components, and Router components with the built in filters, so that you can focus only on the components you've written

Zoom in by double clicking, and zoom out by shift + double clicking (mousewheel zoom coming soon!)

Why?

We built React Sight because there are no tools on the market that give you a visual representation of the structure of your App. When we were developing our own projects, we wished we had a way to see how everything was structured.

We wanted React Sight to be simple to use, which is why all you have to do is install a Chrome extension. No modifying your existing code!

Contributing

Found a bug? Have a suggestion?

Please submit issues/pull requests if you have feedback or would like to contribute. If you're interested in joining the React Sight team as a contributor, feel free to message one of us directly.

Authors

David C Sally (https://github.com/davidcsally)

Grant Kang (https://github.com/Grant05)

William He (https://github.com/hewilliam)

Contact

Like our app? Found a bug?

Tell us what you think!

[email protected]

Visit us at www.reactsight.com

Roadmap

Here's our top development priorities

  1. Better support across all React versions, especially fiber
  2. More consistent detection of root nodes when React Sight is opened
  3. Support for multiple React mounting nodes
  4. More robust error handling and guard blocks for extracting state, props, and store
  5. Logging / Debugging mode for development, feedback, and error reporting
  6. Performance and stability updates
  7. Mousewheel zoom in D3 chart
  8. UX improvements
  9. Improved documentation

License

This project is licensed under the MIT License - see the LICENSE.md file for details

react-sight's People

Watchers

 avatar  avatar

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.