Best Way to Implement Series of 'Typeform' like Questions
hey everyone . i 'm trying to ask a user a series of questions using buttons . once the first question is answered , I want to hide everything and show a new question (so that I do not have to load a new page ) . I am currently doing this by stuffing each 'question ' (buttons , headers , background , divs ) into a component and hiding the component when one of the buttons is pressed . does this make sense ? or is there an easier way to do this ? i 've attached some images as reference I made a typeform clone which uses an array which dictates what the component shows


.jpeg/public)