Git Product home page Git Product logo

fcc-react-projects's People

Contributors

andrayantelo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

johntyree

fcc-react-projects's Issues

Things changed for codepen

  • Format time function, handle when user inputs 60 minutes
  • Reset function: the break and work sessions need to be set to DEFAULT values, also the interval timer isn't being cleared....?

Increment/decrement

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.

Timer not stopping when display < 0

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.

Display formatting

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,...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.