Skip to content

A Chrome DevTool built for developers to visualize the flow of state throughout their application.

Notifications You must be signed in to change notification settings

cmzhong/reactFLO

 
 

Repository files navigation

What is reactFLO

reactFLO is a visualization tool for React developers that allows users to view a visual representation of an application's component hierarchy as well as the flow of state through the application.

Whether you are onboarding a new codebase or looking to expand you site, reactFLO can can help you and your team make sense of the way data is being passed through an application and empower you to make informed decisions about the structure of you components

Getting Started

  1. Install reactFLO from the Chrome Web Store
  2. Make sure that the React Developer Tools are also installed and active
  3. Open a webpage that utilizes React (currently works best on pages being hosted locally)
  4. Open the Chrome DevTools (cmd + option + i or ctrl + shift + j) and navigate to the reactFLO panel
  5. Perform an action on the webpage that causes state to update (if the page does not perform such an action automatically)

How to Use

  • Click and drag to pan
  • Scroll up to zoom in and scroll down to zoom out
  • Double click nodes to collapse/expand their child nodes
  • Click on a node to view its props and state
  • Select a prop to visualize its path as it flows through out the component tree
    • Stateful nodes will turn green if they contain a value equal to the value of the selected prop
    • Stateful nodes will turn yellow if they contain a key with a value equal to the value of the selected prop
    • Sibling nodes will turn yellow if they contain a prop with the same key but a different value to the selected prop
    • Sibling nodes will turn green if they contain a prop with the same key and value as the selected prop

Making Changes

If you are interested in altering or expanding the functionality of reactFLO you can access the source code and build out your own version of the application by following these steps:

  1. Clone this repository
  2. Run npm i in your terminal to install dependencies
  3. Make your changes
  4. Run npm run build to build out the application (note: watch is active)
  5. In Chrome, navigate to your extensions
  6. Make sure that developer mode is toggled on (found in the top right corner)
  7. Click on the button labeled: Load unpacked
  8. Select the folder: ~/reactFLO/build
  9. Make sure to refresh the reactFLO extension every time you make changes to the files

Testing

Run npm test in the terminal. This will initialize the testing suite. Jest is used to run unit tests on the internal library and Enzyme is used alongside Jest to run integration testing on the front end code.

Authors

Cherie Zhong

Jordan Deleon

Marcus Valverde

Vaughn Hartling

About

A Chrome DevTool built for developers to visualize the flow of state throughout their application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.0%
  • JavaScript 17.3%
  • CSS 3.8%
  • HTML 0.9%