S
SolidJS2mo ago
Aaron

Slightly confused about the entry-client file

Hello, I've been trying to get into SolidStart. However, I'm kind of confused about the client entry file. Why does it not explicitly mention/import app.tsx/jsx? What is its responsibility? And how do I know what to put into app.tsx and what into the entry file?
2 Replies
zulu
zulu2mo ago
app.tsx - SolidDocs
Documentation for SolidJS, the signals-powered UI framework
entry-server.tsx - SolidDocs
Documentation for SolidJS, the signals-powered UI framework
entry-client.tsx - SolidDocs
Documentation for SolidJS, the signals-powered UI framework
Hussein
Hussein2mo ago
entry-server (only runs on the server) renders the App and then entry-client (only runs on the client) hydrates it you can do tasks you wish before each of those tasks happen like get the user theme in entry-server and initialize google analytics in entry-client

Did you find this page helpful?