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

124
Views
Reactjs: avoird rerender component for every update state

This is my code:

<SymbolOverview colorTheme="light"
    autosize
    symbols={[["COINBASE:" + symbol1 + "USD"]]}
    wickDownColor="#F45B7E" />

<SymbolOverview colorTheme="light"
    autosize
    symbols={[["COINBASE:" + symbol2 + "USD"]]}
    wickDownColor="#F45B7E" />

If I set setSymbole1("BTC"), my component for symbol2 changed too.

I want only re render component for symbol1.

By googling I found useMemo and useCallback, but I cant understand these.

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

0

If you components in the same page, When all page will be rendering which mean both of them will be rendering.

What you do it's use debounce to change the state "on the fly" for one component.

ref : https://www.freecodecamp.org/news/javascript-debounce-example/

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!