To understand React, you can start by writing React code directly in HTML, but for production use, you’ll need npm and Node.js installed.
The quickest way to start learning React is by writing React code directly in your HTML files. Include three scripts: the first two for enabling React in your JavaScript, and the third, Babel, for using JSX and ES6 features in older browsers.
Add three CDNs to your HTML file:
<!DOCTYPE html>
const container = document.getElementById('mydiv'); |