Let's continue experimenting with state
, props
, inputs
, and transforming arrays.
- Scaffold the app using
create-react-app
- Move
statedata
directory in the root of this repo into your./src
directory (code outside of the./src
directory isn't compiled, so you'll get errors if you try to import this file from it's default location).
import
the state data fromstatedata/index.js
and use it to construct a UI. The UI must include:- A select input/dropdown menu that contains a list of US states
- A component that displays the abbreviation of the selected US state once you select a state from the dropdown.