javascript - Can I edit React components without reloading the browser? -


postproduct "itemprop =" text ">

If the proposals respond to DOM reconciliation, it is possible to reload the dynamic component code and re-submit Is it after editing it?

I'm looking for a solution that allows me to edit, save and update JSX files automatically in the browser without unloading or losing its position without reloading the page. Without it.

Ideally this browser should work without the plugin.

You , a drop-in loader Enables live editing for a browser plug-in or IDE hook required

With Marriage Webpack (HMR) response

If you do this, you can use:.

  • Your reaction components donÊ ¼ bad bad effects;
  • You're ready to switch to Webpack for module (it is not difficult to switch);
  • You (minutes if you already use an extra pair of hours webpack).

    How it works:

    • It uses the WebPack HMR API to learn about a "module update". . Event
    • This varies for React.createClass special call createClass and updateClass ;
    • When all prototypes are updated, it says forceUpdate to re-present the components.

      , and .

      And it's all vanilla js.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -