How to Inject js or html at front side with remix App?

Topic summary

Injecting JS/HTML into a Shopify product page from a Remix-based app to display product-specific text.

  • A simple learning app is being built with Remix, including an admin UI to input text and select products.
  • The author cannot find how to inject code or structure HTML on the storefront (product page) via Remix, especially while developing locally.
  • They ask if it’s possible to inject code and use a front-side API from Remix to render different text per product.
  • No guidance, decisions, or solutions have been provided; the request is open and unresolved.
Summarized with AI on January 16. AI used: gpt-5.

I am creating a simple app, I need help to achieve the following,

  • I am creating a sample app with Remix.
  • the app is simple for learning as I am new here.
  • In the app, there is a simple admin interface that has text to display and product selection.
  • to display different text for each product, I can not find a way to inject code or structure HTML at the front side of the product page with remix,
  • This is in my local, can we inject any code and use front APi from Remix?

Help would be really appreciated, It is really important for me to achieve this.