Not getting certain expected files when publishing as a plain React project

Hi there,

When publishing a TypeScript React project to an existing GitHub repo’s specific directory, the src folder doesn’t contain anything except the components subdirectory. I would also be expecting to see an App.tsx, index.tsx, etc. in the src folder.
Any reason why they wouldn’t be appearing?

Thanks.

Hi @furious_reindeer! If you’re using React (not Next.js or Gatsby), Plasmic will not handle routing - you will have to do it by yourself (see https://docs.plasmic.app/learn/react-quickstart/). Existing React apps use different approaches for routing, usually client-side ones such as react-router, and we don’t deal with that. If it’s a new app you’re building I would suggest using Next.js instead of plain React, then it will generate a functional site and a pages/ directory with the appropriate routes.