How To Make A JSX complier


I was wondering how do I compile JSX code on my own laptop outside of when I use CodeAcademy, do I just put
import React from 'react';
import ReactDOM from 'react-dom'

at the beginning of a JS file, and then it will work fine?


no, that won't work. You will need to install reactjs.

The easiest i have come across is:

it contains everything you need without you having to configure the build


Thank you for that link, I was following the instructions on the read me, and I installed nvm as directed, but when I try to install the react-app using the command
npm install -g create-react-app,
I get
-bash: npm: command not found
What am I supposed to do to install this?


npm needs to be installed first? npm is not installed by default

if you run commands which you don't know, you should google what program they belong to


Thank you, I now have it downloaded.