How To Implement Simple State Container From Scratch

Written by kliukovkin | Published 2021/06/09
Tech Story Tags: redux | javascript | functional-programming | fucntional-coding | programming | coding | code | development

TLDR Redux is about functional programming, so we will use pure functions and immutability. We separate representation and data layer, move the state from component to separate place. Clicking any button will trigger action. So we have an action and now we need to change the state of our application. We now have on direction, data down and actions up. We need to use the observer pattern to notify multiple objects about any events that happen to the object they’re observing. It's better to know what does observer pattern does.via the TL;DR App

no story

Written by kliukovkin | Software Engineer
Published by HackerNoon on 2021/06/09