Efficient State management is the key to save the un-nessecary re-renders. We can save passing of state variable throught child to grandchild using contexts but to save the extra renders we have to use Recoil. This repo contains a simple demo of this.