-
Hi! We're thinking of migrating from a plain Vite app to first a Remix SPA, then a full Remix app. Our one blocker is that we've still got https://ionic.io/ionicons/usage web components all over our app, which are SVGs loaded with a script like so in index.html:
which fetches the icons when below template is encountered in code like so: Moving the above script to root.jsx does not load it as far as I can tell, nor are any network requests made for the ionicons on the actual pages. If the script in the head is the issue, will we have to switch to something less "plain web" like react ionicons or will this not work with remix even on SPA mode due to server rendering issues? We're on Thank you!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Got it working! External Scripts from remix-utils is the answer, I believe. In your
Then you can use |
Beta Was this translation helpful? Give feedback.
Got it working! External Scripts from remix-utils is the answer, I believe. In your
app/root.jsx
Then you can use
<ion-icon />
normally in code.