React introduktionsworkshop meed hooks and styled-components - https://datatjej.se/
This project was bootstrapped with Create React App.
Kolla in förberedelsesidan: Hem
- Skapa en räknare som kan räkna upp med knapptryck
- Lägg till en till knapp som låter användaren räkna ned
- Lägg till en tredje knapp som låter användaren nollställa räknaren
- Skapa ett fält som visar hur lång tid det är kvar till ett visst tillfälle t.ex. nedräkning till julafton
- Låt användaren ange datum som det räknas ned till
- Bryt ut fälten + input från steg 1 och 2 ovan till en egen komponent så flera nedräknare kan visas samtidigt
- Skapa en räknare likt 1 på Mellan-nivå men formatera tiden till ett human-friendly format med exempelvis
moment - Skapa en räknare som räknar up/ned till Nybbörjare men använd
useReducerfrån React för state-uppdatering
- Skapa ett eget tema?
I projektmappen så kan du i en terminal köra köra:
Kör appen i development mode.
Öppna http://localhost:1337 för att se den i webbläsaren.
Sidan laddar om ifall du gör ändringar i koden.
Ev lintfel kommer presenteras i konsollen (console)
Startar testköraren i interkativt läge (interactive watch mode)
För mer information om att köra tester på engelska: running tests
Bygger appen för produktion till build-mappen.
Bundlar med React i produktionsläge och optimerar bygget för bästa prestanda.
Bygget blir miniferat och filnamnen inkluderar hashar (används för cache-invalidation mm)
För mer information om deployment på engelska: deployment
Note: this is a one-way operation. Once you eject, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify


