The World of React + React Native State 🌍

Image for post
Image for post

When i first learned about State, it is so friendly and simply just “data that is going to change + mutating it triggers a component rendering”. That’s what people told me.

After years working with it, i started perceiving the gap in my knowledge. The State I used to know, comes with more concepts & related concerns that i only realized after hitting hardship & lots of researching effort. Hardly had i found a post covering them all. So in this blog post, let’s break it down !

Table of contents:

  • You probably don’t need State?: Decide when to use State wisely. …


Careful with props references when writing optimizations

Image for post
Image for post

React is great and fast most of the time. But sometimes, due to heavy calculations, it slows down, that’s when we need to measure and optimize our Components to avoid “wasted renders”.

Optimizations come with its cost, if it’s not done properly, the situation might get worse. In today’s blog post, we get to know the rendering process, learn the cause of wasted renders, solutions & how it’s broken.

Table of contents

  • Standard Render Behavior: The cause of wasted renders in Render Phase
  • Improving Rendering Performance: Some techniques
  • How New Props References break Optimizations: The detail of the…

About

Kush Tran

React Native Developer. Code for tattoos ! Email me: tdkhoa27081997@gmail.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store