---
title: "Content rendering"
slug: "content-rendering"
abstract: "Overview of displaying SitecoreAI content in a front-end app using GraphQL APIs."
---
# Content rendering

A key development task with Sitecore is retrieving the content authored in the [SitecoreAI Page builder](https://doc.sitecore.com/sai/en/users/sitecoreai/build-pages.html) and rendering it in your front-end application. Although the exact implementation details vary by framework, rendering SitecoreAI content follows the same main steps:

1. *Retrieve layout and content from SitecoreAI* - in Sitecore, a layout defines which components appear on a page and where. When a content author builds a page in the Page builder, they are arranging components within a layout. In this step, you make a GraphQL query to retrieve JSON-formatted layout and content for a SitecoreAI page. In the JSON data, components represent the page structure, and the content is stored inside component fields.
2. *Map component names to code* - map component names in the retrieved JSON, such as `"RichText"`, to code in your app, such as your own *RichText* component implementation. Each component implementation reads its own fields and renders them according to their field type. This ensures that your app can render the correct component in the user interface.
3. *Render components recursively* - ensure your app can display components nested inside other components.

## Get started

To get started with content rendering:

- [Learn about and get access to](https://doc.sitecore.com/sai/en/developers/sitecoreai/introduction-to-framework-agnostic-sitecore-development/content-rendering/the-preview-and-delivery-graphql-apis.html "The Preview and Delivery GraphQL APIs") the Preview GraphQL API and the Delivery GraphQL API. These are the APIs you use to retrieve layout and content.
- [Review the GraphQL schema](https://doc.sitecore.com/sai/en/developers/sitecoreai/experience-edge/experience-edge-apis/the-experience-edge-schema.html "The Experience Edge schema"), including the GraphQL entry points and how they relate to the various Sitecore concepts.
- [Review the structure](https://doc.sitecore.com/sai/en/developers/sitecoreai/introduction-to-framework-agnostic-sitecore-development/content-rendering/layout-query-and-response.html "Layout query and response") of the layout query and response.
- [Review the field types](https://doc.sitecore.com/sai/en/developers/sitecoreai/introduction-to-framework-agnostic-sitecore-development/content-rendering/field-types-in-rendering-data.html "Field types in rendering data"), which is essential when building a component implementation.
- Complete the [Render SitecoreAI content in your app](https://doc.sitecore.com/sai/en/developers/sitecoreai/introduction-to-framework-agnostic-sitecore-development/content-rendering/render-sitecoreai-content-in-your-app.html "Render SitecoreAI content in your app") walkthrough, where you programmatically query Sitecore for layout data, parse the recursive JSON in the response, and render components on your page.