How to insert a code generated by custom Shopify app to Shopify store code?

New Member
1 0 0

The application must generate a string that will have to be added to the Shopify store, for example, product-template.liquid. Already I have a working app solution built on React.js. It is installed on my test store, i.e embedded to the admin panel. I would like to have functionality: a button that enables or disables string. That test string, for example, "Lorem ipsum dolor sit amet" must be added to product-template.liquid. Please could you help me, how to do it? Do I need to use a Script Tag mutation?