How do I create a component that waits for changes in the database and updates the Iprs?

Asked

Viewed 16 times

-5

How do I create a component that listens to changes in the database (my db is just a .json with an object) and update the Infos along with the changes. I’m new to Act

This is the code I’m using:

<div id='topicos'>
        {database.map((item, index) => {
            return(
                <div key={item.id}>
                    <h3>{item.title}</h3>
                    <p>{item.description}</p>
                </div>
            )
        })}
    </div>
  • ...How do I create a component that listens to changes in the database... I would ask what kind of database? If it is a relational database it would indicate a Rigger but how ...o meu db é só um .json com um objeto... i advise you to read this question https://answall.com/q/524913/137387

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.