Hi Team,
I need to create a simple webpart form, where the form contains a text box to user enter title values, and a button to submit the SP list row/record.
The button has to bind with the SP list to save the record from the textbox value.
also, list out the all list rows in the same webpart.
Make sure I have used REACT JS in the SPFX webpart.
any help/assistance please follow the step-by-step to create this webpart?
Rajkiran SwainPosted Jun 26, 2023, 11:56 AM
Step 1: Set up the development environment
npm install -g yo gulpInstall the Yeoman SharePoint generator by running the following command:
npm install -g @microsoft/generator-sharepointStep 2: Create a new SPFx project
yo @microsoft/sharepoint
Step 3: Add the form component
src/webpartsfolder.yo @microsoft/sharepoint:reactSimpleForm.tsxfile.render()method with the following code:Step 5: Build and test the web part
gulp buildDeploy the web part to your SharePoint environment by running the following command: