Memory errors happened in real life, and they are several cases mentioned in news articles. The cases showed the consequences for their mistakes, and researchers revealed the reasons behind their…
Do you want to trigger functions on your server? Need to update data on your database? Here’s how you can do it in React Studio.
React Studio makes it easy to load data from API to app (Data sheets) easy but calling certain API endpoint with a button interaction has been a bit tricky to do. We’ve released an update to our Xano and Generic JSON plugin interactions plugin which clears the complexity of calling any API endpoints you might have.
React Studio’s new Xano plugin offers new interaction under Save data -> Plugin -tab. The plugin UI simple; you can set the endpoint path (the base url is already set in your Xano plugin settings) and the method (GET,POST,DELETE) and body of the call. Finally if you want you can save the API response into Data slot.
You can “inject” variables and code into API path url and also into body which makes the interaction really flexible. Adding Data slots is dead easy; just click the “Add Data slot” button and choose the data slot to be injected into string.
In the Endpoint field you may also add properties and collect form field values into API call with the following syntax:
In the example interaction above we’ve set the button’s onclick interaction to make a API request to endpoint in Xano’s backend. The interaction simply sends the forms textarea text into endpoint which then updates the description text in the database.
Finally in the generated app the request looks like this
The same interaction is also available for the Generic JSON plugin so you can call any API endpoints out there.
In case you want to show or work with the API response on your app you can save it to Data slot by choosing the data slot from the Plugin’s “Save response to data slot” section.
Each table has some rules that allow the type of data to be inserted into the table, those rules are called Constraints. Constraints make sure the integrity of the table and make sure all inserted…
Writing is a profession where your ability to express information in written form comes primarily from experience. A niche, or your specialty, is generally an area where you have expertise. You can…
One of the wonderful products we can make out of the tree of life is coconut jam. It is widely popular in Southeast Asia, mainly in Indonesia, Philippines, Malaysia, and Singapore. Since coconut jam…