Giter VIP home page Giter VIP logo

Comments (2)

gaearon avatar gaearon commented on May 17, 2024 11

@michael-hertzberg-zocdoc

The deprecation has nothing to do with hot reloading per se. (I’m just saying that the most common use case for it, hot reloading, is solved by React Hot Loader 3.)

The reason the project is deprecated is it’s impossible to reliably detect React components at the compile time. It wasn’t so bad during React 0.13, but functional components in React 0.14 are notoriously hard to detect (#57), and it’s not going to get easier over time. Any function may turn out to be a React component now. Additionally, components that are generated (e.g. with higher order components) were not being detected at all.

For instrumenting React components, you will be able to use the official React devtool API that is soon going to be exposed. It’s unstable but it’s better than nothing. (facebook/react#6549, facebook/react#5306)

from babel-plugin-react-transform.

michael-hertzberg-zocdoc avatar michael-hertzberg-zocdoc commented on May 17, 2024

@gaearon i was a big confused by the deprecation notice... i've been personally using this to instrument my React components to send over to a logging service. Still, nothing to do with hot module reloading... am I missing the idea here?

from babel-plugin-react-transform.

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.