User images. #React, #Context, #fetch, #less, #webpack, #jest
React application to display user’s images.
#react
#react context
#hooks
#less
#jest
#webpack
#html
store
: React Context store, actions for append, delete images, update screen width.logic
: application logic,components
: React components with styles,css
: shared styles (variables, form controls),data
: example files.Enter
or Add
button to add image URL (images only, not JSON),Upload
button: select files from files dialog (image/*
or json
),Clear
button: delete all images (with confirmation),Remove mode
checkbox: every image has a button Remove
when this mode is checked,
{
galleryImages: [
{ url: string, width?: number, height?: number },
...
]
}
npm run start
- bundle and start webpack server (mode: "development"
),npm run build
- create production build in folder build
,npm run test
- run unit tests.