Giter Club home page Giter Club logo

reaction's Introduction


logo
Dedicated React IDE in VS Code

PRs Welcome License: MIT

A React development environment inside your VS Code editor.

ReactION's hot-reloading HTML previewer and component visualizer helps you streamline your React development workflow. ReactION is currently in active development so we welcome any constructive feedback or contributions to this product. Please follow this repo for contribution guidelines and our development road map.

Features in the pipeline

features


  1. Works with any React application - ReactION supports React 16.1+ (including React Fiber) and React Router v4.
  2. Visualize your app - ReactION shows the current structure of your application in real time with hot reloading.
  3. Preview your HTML - Live render of your App through the in-editor HTML preview in sync with the tree view.
  4. From Tree to Codes - ReactION will open up the React file that is associated with the particular component on the tree view when you click it.
  5. Gain quick insights into your React tree state - the React tree nodes will have different colors based on its current state and props, including the latest component change.
  6. Debug your React - With ReactION, you can travel through different state changes of your React application

Prerequisite

  • Make sure you have Google Chrome installed on your computer. Also, our extension currently only runs in VS Code environment, so make sure you are using VS Code as the code editor.
  • Also, you will need a React application. Feel free to fork and clone our sample app here!

Demo of current product

Current Features

  • No setup required! ReactION requires NO modification to your codebase, but installing the VS Code extension.
  • React Fiber Tree structure shown inside VS Code (Powered by Chrome Headless).
  • Ability to edit components on the HTML preview and see the component hierarchy on the side panel.
  • Alternatable theme based on user preference (i.e., Light and Dark).

In Progress

  • In-editor HTML preview in sync with the tree view
  • Clicking on the node triggering associated React component file
  • Re-rendering on save
  • Node color difference based on its status
  • Time Traveling your React application

How to Use

[Download Directly from GitHub]

  1. Clone the repo and run npm install
  2. Run npm run build
  3. Open VS Code Extension mode by pressing F5 or ctr+5
  4. When a new VS Code window pops up, open the React code file that you want to run the extension on
  5. npm start your React file and run your application in localhost:3000 (default)
  6. Run the main extension by clicking on the ReactION logo on the side panel or ReactION:Launch
  7. Run the embedded HTML webview version with the command cmd + shift + p then ReactION: Embedded Webview
  8. Enjoy the tree view!

[Download From VS Code Marketplace]

You can download the extension directly from the Marketplace.

Configuring ReactION's Default Settings

You can change the following default settings in the Configuration file:

  • React Tree View Theme
  • Change the server port that ReactION listens to
  • Change whether or not to have an external Chrome instance

You can configure ReactION's default settings through the ReactION-config.json file as such:

{
  "system": "darwin",
  "executablePath": "",
  "localhost": "localhost:3000",
  "headless_browser": false,
  "headless_embedded": true,
  "reactTheme": "dark"
}

Built With

Contributing

ReactION is currently in beta release. Please let us know about bugs and suggestions at the issue section. Feel free to fork this repo and submit pull requests!

Team

Andy Tran | Carson Chen | Daniel Wu | Jinsung Park

Designer

Yoojin Jung

License

MIT - check out license page for more details

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.