he did mention this was the “easy” way to set up react. does anyone have a source for the proper way to import react to be able to use it? Like I said, I’m really new to React.
Yes, if the starting code is showing up the project is running correctly.
When using create-react-app it will have the imports in index.js by default at the top (in Vite it is in main.jsx).
import React from 'react';
import ReactDOM from 'react-dom/client';
React does not need to be imported anywhere else for function components. With class components you will have to either import Component or React when using React.Component
I used Create React App but now I think I understand what Vite is. It apparently just creates the starting template faster? Is Vite kind of the standard? What are the differences other than set up speed?