A company wants a web interface for tracking a variety of assets, and would like you to build a simple system.
Assets have the following attributes:
- A required Resource ID, which is a number of up to 8 digits in length, and is unique to each asset;
- A required Type, which can be a Laptop, a Tablet, or a Phone;
- An optional Description, which can be any string up to 200 characters in length.
The company would like the assets to be displayed in the order they were entered into the system, with the most recent at the top of the list.
They want to be able to remove assets from the list.
- Make the current asset list to persist between page reloads, but without a back-end system. Make it so!
- Undo function for the last delete action by pressing
Ctrl+Z
, in case it was an accident!
npm i
npm start