DEV Community

Discussion on: An easy way to create a customize dynamic table in react js

Collapse
 
phykurox profile image
phykurox • Edited

How do I renderTableData without refreshing whenever there's new data added to the state?

Collapse
 
abdulbasit313 profile image
Abdul Basit

How you are adding new data? you just need to use spread operator if you are adding data locally. like [...oldState, newObj]