
Public
reactHonoExample
Viewing readonly version: 211View latest version
This template is a classic client-side-only React app.
The entrypoint for the frontend is /frontend/index.html
. This is the HTML page that is returned at the root from /backend/index.ts
.
It imports /frontend/style.css
from /public/style.css
and /frontend/favicon.svg
from /frontend/favicon.svg
. Everything in /frontend/
is mapped to /public
by /backend/index.ts
. This is just a convention. You could import & serve everything out of the same folder name.
This HTML file has a <div id="root"></div>
, which is where we mount the React app.
This HTML file imports /frontend/index.tsx
from /public/index.tsx
, which is the entrypoint for all frontend JavaScript, including all the React.