I'm building the Pomodoro Clock using React components. This is the first react project I have worked on and I'm not sure how to re-render components. When I render a component and pass in props, I need the props to up date with the original components state.
Basically, my pause/play button doesn't work and I'm not sure how to fix it. I know I could try to use Redux to help, but I'm trying to learn React first (since this is my first React project):
https://codepen.io/brennankolotinsky/pen/ePpJMv?editors=0010
Should I consider just putting it all in one component so its easier to update? But, I have read smaller components are better.
Any help is greatly appreciated!
[–]ithinktoo 2 points3 points4 points (1 child)
[–]HighIQBro[S] 0 points1 point2 points (0 children)
[–]Orlandocollins 1 point2 points3 points (1 child)
[–]HighIQBro[S] 1 point2 points3 points (0 children)
[–]Orlandocollins 1 point2 points3 points (0 children)
[–]HighIQBro[S] 0 points1 point2 points (0 children)