JavaScript, ES6, React, JSX, Redux, Jest
https://lukaszsobek.com/repo/color-picker/
- Can load remote suggestion file with a 5 second delay
- Can see "loading" while remote file is being fetched
- Can pick colors from fetched list
- Can use suggestions after 2 characters
- Can apply selected color to background with a 50% opacity
- Can only submit after remote data file is loaded
- yarn start - starts dev server with auto update and lint
- yarn test - starts tests with auto update
- yarn build - creates production build
App render, actions, components, reducers
The state handling is separated into two parts:
- global state (available colors, modal state, fetch status) are handled by redux
- local state (text input, filtered list) by react state