import { useState } from 'react';
function MyComponent() {
const [age, setAge] = useState(42);
const [name, setName] = useState('Taylor');
}
function handleClick() {
setName('Robin');
setAge(55);
console.log(name); // Taylor
console.log(age); // 42
}