Skip to main content

Command Palette

Search for a command to run...

Falling in Love with ReactJS

Updated
1 min read
Falling in Love with ReactJS
S
Documenting my daily learnings as I prepare for SDE-1 roles at high-performance and HFT-focused companies. Passionate about systems, strong DSA, and building efficient backend infrastructure.

TIL, ReactJS docs are really good and I am starting to get a better hang of how hooks really work.

useContext

The most important thing in daily life of a ReactJS developer maybe the context providers.

NextJS provides them pre written and ready to use. But when I tried to understand them.

Man oh man, they are simply really good.

createContext allows to make the parameters for the context provider.

This thing solves the problem of prop-drilling. Any ReactJS developer may tell you that how it is a pain in the 🌝.

useContext allows you to pass the context in the top most file and use it anywhere.

Damnnnn!!!!!

Now I know why everyone loves React ecosystem.

Resources:

  • Prop-drilling=>

    https://react.dev/learn/passing-data-deeply-with-context

  • useContext=> https://react.dev/reference/react/useContext

More from this blog

Saksham's Blog on Learning

11 posts

I write about what I learn to become a high-paying quant dev!