Frage im Vorstellungsgespräch bei Echiofy

How does react useState hook work explain with example. Create a function to print three state changes on click of button and tell how many times the output will appear