---
# System prepended metadata

title: what is useState ?

---

# what is useState ?

const[count, setCount] = useState(initial value);
useState is a array which return 2 items
first is stateobject and second is updated function


