Skip to content

How would I integrate something like feather-icons without errors? #719

Closed Answered by gbj
lyssieth asked this question in Q&A
Discussion options

You must be logged in to vote

(I often link to GitHub discussions when other people need help, so I've written kind of a long answer here. Feel free to skip to the end but I think reading the first will help you when you're thinking about how thi framework, or honestly most similar JS or WASM frameworks, works overall.)

The Problem

So let's think through the way your application runs:

  • you make a request to the server
  • the server renders your app to HTML, including
    1. a <head> that tells the browser to start loading the WASM version of your app
    2. a <body> that includes your app, rendered to HTML, including
      i. the <script> tags from the Feather component
      ii. the <i> tag from the Icon component
  • the browser does three thing…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lyssieth
Comment options

Answer selected by lyssieth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants