React DevReactelopment

136 views 8:31 am 0 Comments August 21, 2023

2 pts React DevReactelopment Environment. Serious React developers will want to set up a development environment probably using NPM (Node Package Manager), Apache, and a React (JSX) friendly editor like Visual Studio Code or Atom or Sublime Text. With such a React Development environment, your JS code will include import statements like the ones shown below. This development environment will transpile the JSX to JavaScript code whenever the code is updated. Whenever you run your code, you'll be running the transpiled code. import React from 'react'; import ReactDOM from 'react-dom'; Otherwise (if you do not have such a React Development environment, e.g., with NPM), your index.html page will include script tags (like the ones below) that reference the React and Babel CDNs. In this scenario, your JSX code will be transpiled (by the code in the Babel CDN) each time you refresh the page.

Tags: , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *