It’s common these day when React & React Native developers use State management library (like Redux). I’ve been using React & React Native for a while now and found out that Pure React is actually not bad. In this article I will share my way of doing things with React & React Native purely, without State management library (represented by Redux).
For those of you who are struggling learning Redux, because of the overwhelming of the whole React/JSX/Babel/Webpack/Native Component/Native Module/.. and have to add Redux to the list just to solve some of React problems, or because of the high learning curve of Redux, I hope you find this article helpful.
Assuming you have some knowledge of React, I will jump right in the problems that most of us encoutered at the beginning of time learning React:
- Flow
pass data down, pass event up
makes us to pass data & function via props and it's hard to manage when amount of props gets huge. (Comunication between component