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
https://docs.solidjs.com/solid-start/reference/entrypoints/app
https://docs.solidjs.com/solid-start/reference/entrypoints/entry-server
I think you typically not going to touch the entry file
unless see the last part of the entry-client
https://docs.solidjs.com/solid-start/reference/entrypoints/entry-client
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
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