Error with RecentDocumentsWebpart
getting the error: Error - [tsc] src/webparts/recentDocuments/RecentDocumentsWebPart.ts(81,7): error TS2345: Argument of type 'typeof RecentDocuments' is not assignable to parameter of type 'string | ComponentClass<IRecentDocumentsProps> | StatelessComponent<IRecentDocumentsProps>'.
I'm new to React and Sharepoint, so I'm having a tough time figuring this out. Any thoughts?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 32dd282d-6215-df1d-c666-98faf2450bfa
- Version Independent ID: ee0881ae-6660-5d2d-eb3e-cd7ff4fd8b98
- Content: Share data between web parts by using a global variable (tutorial)
- Content Source: docs/spfx/web-parts/guidance/tutorial-share-data-between-web-parts-global-variable.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
Modify RecentDocuments tsx file:
s React.Component<IRecentDocumentsProps, void>=》s React.Component<IRecentDocumentsProps, any>
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues