Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

42
Views
How to update unrelated component in react without refreshing the whole page?

Suppose I have 2 components A and B which are not linked (by props), but which are linked by the database. component A has a button that changes the data in the database.

I want component B (only with A) to render when the database changes. The problem is, that when the component A mutate the database, the page needs to be refreshed in order for component B to be updated.

It's may be a weird question but I'm still a beginner in React.

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs