S
SolidJS9mo ago
hannus

how to edit html attribute?

In the v1.0rc of solidstart, the Html tag generated in the entry-server.jsx. Is there a method to change the html attribute such as change dark theme to light theme in other components? If I created a signal to control the theme in entry-server.jsx, I have to use context to share the signal. Is it a proper way to wrap StartServer component into a Context in entry-server.jsx? I think it is a little strange. Is there another method? thanks a lot
2 Replies
lxsmnsyc
lxsmnsyc9mo ago
You'll have to modify it through the plain DOM API if you want to add attributes to it because entry-server does not exist on the client
hannus
hannusOP9mo ago
thanks. It clears.
Want results from more Discord servers?
Add your server