Jul 1, 2024
npm init
and npm install
required packagesnpx create-react-app my-app
function Hello() { return <h1>Hello, World!</h1>; }
componentDidMount
, componentDidUpdate
, componentWillUnmount
styled-components
library for component-level styling[state, setState] = useState(initialState)
onChange
handlers and setState
to capture user input<Route path='/about' component={About} />
fetch
or Axios to get data from external APIsnpm run build
to create an optimized production build