Reputation: 128
I'm new to back-end coding, and I'm struggling to understand exactly what a "fullstack" app would look like. Is it:
index.html
, which has <script src="main.jsx"></script>
in it (If this is the case, how would the .jsx
content get compiled into browser-ready javascript?).json
) + a frontend app (that you would initialize with Vite or CRA) that fetches from said server?Upvotes: 1
Views: 63
Reputation: 2341
Both are currect , your server can serve content to the cliend (first case) or send data to the client (json
, xml
or etc).
Note that when you are working with react and .jsx
component you have to build your project and server the html file (including js
, css
) via express
server
Upvotes: 1