# Variable updates
# Objects and primitive data types
For all objects and primitive data types you can just assign a new value to trigger a rerendering of your application.
let text = 'First';
const onClick = () => {
text = 'Second';
}
# Arrays
Array methods like push
are not reactive. You need to reassign the value to trigger the reactivity.
let array = [0];
const onClick = () => {
array = [...array, 1];
}