'React fill form, from send button open it

I have a restaurant MySql database. In React I send new values in a form with node fetch. Adding a restaurant works fine. How would it be possible to open the created restaurant at the same time you press button to send the form? I guess it's very simple but I'm new to React. Restaurants are added to database with idRestaurant auto-increment.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source