andrayantelo / fcc-react-projects Goto Github PK
View Code? Open in Web Editor NEWReact-redux projects for freecodecamp
React-redux projects for freecodecamp
How does it work?
Implement the increment/decrement functions for the break session and the work session, and figure out what the best way to structure that is. Should I have if/else statements in the action creators? reducers? or before calling the action creator? Read redux docs and look at examples.
Once everything actually works, maybe change Controls to a functional component.
So, the reason this isn't happening is because display gets updated in the reducer, and we don't have access to the new value for display in time interval. One way to change this is to send the new value for display through a payload on the action creator instead of updating it in the reducer. Need to figure out what is actually best practice.
If your countdown is set to 2:00 minutes for example, and you start the timer, it starts out by displaying 1:58 instead of 1:59, because the formatTime function is rounding down. But if you round up instead you end up with:
1:01, 0:60, 0:59,...
It needs to show the entire decimal number. For example it should show "2.2" instead of first "2", then ".", and then "2" again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.