UST Interview Question

How to manage state in react JS