With headless Sitecore can we still use templates or not

With headless Sitecore can we still use templates or not

  • Yes, but it depends. The JSS SDK and ASP.NET Core SDK, both using Headless Services, still tie back to a Sitecore back-end where content is still managed by authors. This includes personalization and layout, all served up by the Headless Services to the consuming application. This allows you to use templates for field definitions, and also create templates to define layout structures, presentation details, etc.

    However, if you decide to go headless by using something like the Item Service API, that only retrieves the content. Layout information is not included in those calls.
  • It is late to reply and Jason has already replied.
    I am replying as it may be useful for others.

    Templates are still an important part of the Sitecore implementation in JSS. Preferred is to use the Sitecore first approach and create the templates and then connect that with the React code.
    We did create the templates and authors created items using them. Front End teams received the schema of the templates and they were able to write the code based on the template fields.

    FYI, according to Helix guidelines. All templates created for a JSS app are under the Project folder.