-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– Augusto Vasques