This can be done by defining a component in the manifest that has no fields, for example:
Without Datasource
import { addComponent } from '@sitecore-jss/sitecore-jss-manifest';
export default (manifest) => {
addComponent(manifest, {
name: 'Welcome',
});
};
With Datasource
import { addComponent, CommonFieldTypes } from '@sitecore-jss/sitecore-jss-manifest';
export default (manifest) => {
addComponent(manifest, {
name: 'Welcome',
fields: [{ name: 'title', type: CommonFieldTypes.SingleLineText }],
});
};