If you use React you probably know about the so called hooks. They were officially announced at this year's ReactConf by Sophie Alpert and Dan Abramov. Their presentation could be seen here. I, same as many others got intrigued by this new feature. A little bit confused by if I like them or not but kind of excited. This article pretty much sums up my thinkings around React hooks and aims to give a balanced opinion.
Have in mind that the hooks just got released and they are (maybe) a subject of change. Beign an experimental feature React team suggests to check the official documentation at https://reactjs.org/docs/hooks-intro.html and monitor the RFC.
An example of how to use Demoit commits to form a Story.
I've made the library as part of my work on demoit.app where I need to store multiple files and their different versions. Storing all the content every time simply doesn't scale so I needed a smarter approach. Something like Git but running in the browser. It needed to be lightweight and to provide similar diff/patch experience. That's what Gitfred is.
The Function-as-child component or the so called FaCC is one of the most popular patterns in React nowadays. There are numerous libraries using this approach and this article is revealing how it works.