I am working on a custom SPFx webpart. I wanted to know if there is a way to make the webpart close and/or re-open itself.
Ideally this would trigger when the user fills out the text fields in my webpart and hits the submit button, then the webpart would close and another instance of that webpart would open in its place.
Any advice on how to do this would be appreciated.
Thanks
Update: I'm adding a gif that explains what I'm trying to achieve. Whenever I click the submit button, I would like for the webpart to refresh itself. I am making a POST request in the render method, so having the webpart refresh would allow that request to be made again. Also, I would like the contents of the richtext field and the people picker to be cleared out when the user hits submit