personally, I like codesandbox to create React projects, because you have a real folder structure, so you can move related code together, instead of having one huge file that is hard to digest
you can refactor some of your duplicate stuff, e.g. in the operatorReducer you are doing 4-times 6 lines of code, although that only differs on the operator; you can create a helper function, e.g. createNewState, that hides the implementation details of the actual calculation and the creation of newState:
I’m working on the 25+5 clock project now and I’ll heed your advice for it. I want to improve my project/file management, that’s an area I’m massively lacking in right now, so thank you for suggesting codesandbox!
Are there any best-practices/standard practices I should know of before I shift to it?
I reset the input after every arithmetic operator to reset for the second operator. Felt it was visually more explicit than resetting to empty.
In a gist: After clicking an operator, The first operand gets stored in the state, along with the operator, and sets up input buffer to accept second operand.
On average, I spent 2 days on these projects. But, this one ran for 4 days because I wasn’t very good at Redux.
That’s a great idea. I had left a space(In componentWillMount) where I’d start keyboard compatibility. Might tag this along and improve it, after finishing 25+5.