Component render method issues #1485
Unanswered
matthewmcgarvey
asked this question in
Feature requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on providing scoped CSS for our HTML. So you'd have a css file and it is only applied to the HTML within the component. The problem I'm facing is that I don't have a way to automatically add the style tag to the html because
mount
directly callsrender
on the component which is where users write the HTML.Ideally,
mount
would still callrender
but the html is written in a different method that is called byrender
so I have a place to add in the style tag without forcing users to add it themselves.With pages, we have the abstract class implement the
render
method and then somewhere in there it callscontent
which the implementations provide. Maybe that could be something?Beta Was this translation helpful? Give feedback.
All reactions