A while ago, I wrote a short post showing a minimal 33 line React. A lot of the comments focused on the Mithril-like syntax for the virtual DOM. So that we can ignore that aspect, here is a 96 line React with a JSX compiler.
Read more
Similar
Contrary to popular belief, by default, react component doesn't care whether its props changed or not. It will always re-render when its parent renders. (more…)
Read more »
I’ve seen several ways for handling events in React, however, handling them with higher-order functions is so much more elegant when you need to pass additional arguments:
Tada! (more…)
Read more »
Let us explore how you can write your own custom react hooks that allows you to share common logic across multiple functional components in react. (more…)
Read more »
Right now, I am working on marketing for CoBattery. In that vein, CoBattery is an iPhone battery case with a swappable battery. It comes with two batteries, so you never have to plug in your phone. (more…)
Read more »
I love the new hooks from redux-react. It simplify things a lot. Let’s see how to test it.TBH, the solutions can be applied to any react hooks. (more…)
Read more »