How to reuse an existing SPFx WebPart inside another SPFx solution without copying or moving the code?
02:40 14 Nov 2025

I have two separate SPFx solutions:

  1. Timesheet WebPart → already deployed and working on one SharePoint page

  2. HRMS WebPart → a completely separate SPFx project used on another page

The Timesheet solution is a large and complex project (many components, services, utils, etc.), so copying files or moving the logic is very time-consuming and risky.

My goal:

Reuse the existing Timesheet Webpart inside the HRMS Webpart without duplicating the logic or moving files.

sharepoint sharepoint-online spfx sharepointframework