Re:Show HN: Reactuate – a React/Redux stack with a focus on ...
by harel on Monday February 01, 2016 @04:56AM
(#11010804)
Its the single page app tax. To be honest I find it infinitely more complex than a standard old school front end but I'm also happy to pay the tax and reap the benefits in the end. Not to mention it makes things more interesting from a pure dev fun point of view.
Re:Show HN: Reactuate – a React/Redux stack with a focus on ...
by grumblestumble on Monday February 01, 2016 @01:47AM
(#11010204)
"Now, we should define an increment action." <TYPING INTENSIFIES>. 40 lines of code later, we can increment a variable.
Re:Show HN: Reactuate – a React/Redux stack with a focus on ...
by yrashk on Monday February 01, 2016 @01:51AM
(#11010225)
This project is written as a literate program and most important parts of the code are exposed. What you see there is how it's actually implemented.
The action is defined like this:
const IncrementCounter = createAction(domain, 'IncrementCounter',t.maybe(incrementParameter))
(A oneliner)
(I expect this comment won't be too popular, but I'm happy to take the flak.)