In this part, we’ll talk about React’s transactions.
In part four of this series we finally add
setState to our little React clone.
setState is a beast, so grab your favorite beverage and get comfortable!
In part one, our small React clone, Feact, was implemented far enough to do basic rendering. But once the render happens, that was it. In this part, we’ll add the ability to make changes to the app with subsequent renders. This part will begin to show how the virtual DOM diffing works.
In part one we established basic rendering in Feact. That touched upon the most important lifecycle method,
render, and now we’re going to add in
componentDidMount support to Feact.