my react level is very low and I am searching for a solution for this:
Right now, I open a react app by an url: http://localhost:3000/campaigns/create?param1=abc¶m2=123¶m3=abc123. The url params contain data from a caller outside my app. This works fine for one entity of data params from the url. I parse it to an json object, like so:
{
"param1": "abc",
"param2": "123",
"param3": "abc123"
}
What do I do, if the caller wants to submit 1 to n entities by calling the url in the browser, so that I get an result object as array:
[{
"param1": "abc",
"param2": "123",
"param3": "abc123"
},{
"param1": "abc",
"param2": "123",
"param3": "abc123"
}]
What is the common way to send data to an url, without calling http endpoints from inside the react app? I use react 16.10.