Create-react-app is deprecated and not maintained anymore, the community is moving to vite. Vite also should speed up the build a little bit.
Other changes:
Replace axios with fetch (smaller bundle, and no axios-specific features are used)
Replace moment with date-fns (moment is deprecated, and date-fns is smaller)
Fix bug of 'Next run' date not being able to be parsed and showing 'Invalid date' (maybe due to my timezone?)
Move schedule text to be next to 'Waiting for next run' text
Clean-up effects, effects now use setInterval to run every 10 seconds, and useEffect returns a clean-up function to clear the interval (prevents leakage when dismounting the component)
Remove router, since there is only one page
Use the new React 18 mounting method of createRoot instead of ReactDOM.render which puts React into compatibility mode
Create-react-app is deprecated and not maintained anymore, the community is moving to vite. Vite also should speed up the build a little bit.
Other changes:
useEffect
returns a clean-up function to clear the interval (prevents leakage when dismounting the component)createRoot
instead ofReactDOM.render
which puts React into compatibility mode