You should explain your code in words as you go. Just looking at code makes it hard for me to understand what update are you making from one code window to another and what your code does.
I do put comments in codes to avoid making my articles too long. However, I'll do more explanation next time.
This article assumes the reader knows a little of react or must have read the core features of react library.