---
title: "Manually maintain the Component Factory"
slug: "manually-maintain-the-component-factory"
abstract: "Register new components manually"
---
# Manually maintain the Component Factory

[The Component Factory](https://doc.sitecore.com/sai/en/developers/jss/22/jss-sai/the-component-factory.html "The Component Factory") is a mapping between Sitecore renderings and their JSS component implementations that JSS apps use to match renderings to components. JSS automatically updates the mapping when you add new components, but you can also maintain it manually.

To maintain the Component Factory manually:

1. Add the Component Factory file to source control.
2. Delete the `scripts/generate-component-factory.[ts|js]` file.
3. In Next.js applications, remove the `scripts/generate-component-builder` folder.
4. In the `scripts/bootstrap.[ts|js]` file, remove any usage of the Component Factory generation file.
5. In Next.js applications, in the `scripts/bootstrap.ts` file, remove any usage of the `ComponentBuilder` generation file.