Currently i have a form written in react.js. It contains a form with a selectbox and buttons.
I also have a server written in node.js. The server contains already three functions.
1st function: get items from a xml file
2nd function: Adding items to xml file
3rd function: Removing items in xml file
Now i want to populate the selectbox with items, which i will get from server (1st function)
And i also want to invoke the 2n and 3rd function on the server, when i click on the button. Afterwards the selectbox must be updated (1st function).
Note: Please use axios if you want to make ajax request