Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

84
Views
Redux simulated component update

What is the most efficient way in (functional) React to update a component when a variable changes value?

A piece of code somewhere in the program (over which I have no control) changes a variable e.g. an array in a "Redux" compatible way (i.e. a new reference is returned).

I would like to simulate Redux's useSelector without having to have to use Redux.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Updating the component means you need useState, Not sure what exatcly you are looking for, But if you want to update the component without much Props drilling, then i will suggest you to look into the Context-API on react.

This way you can have control like redux, without redux. https://reactjs.org/docs/context.html

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!