You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been using class names to make it easy to look at the browser inspector, see class=".warning-message" and know that the component is probably WarningMessage. I'm wondering if there is an automated way to do this. Perhaps a flag while in dev could show mithril-component="WarningMessage" on that component's main view node. Is there a way to hook in like this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have been using class names to make it easy to look at the browser inspector, see
class=".warning-message"
and know that the component is probablyWarningMessage
. I'm wondering if there is an automated way to do this. Perhaps a flag while in dev could showmithril-component="WarningMessage"
on that component's main view node. Is there a way to hook in like this?Beta Was this translation helpful? Give feedback.
All reactions