Create client side Web part, using React Framework commands given below.

For this demo I have added a text field named WebpartTitle, button named ClickHere and a choicegroup field named ChoiceGroups.

Deploy and testing

Save the file -> run Gulp serve->add the Web part in workbench.html -> edit the Web part properties.



When click here button is clicked, the Web part title field value changes.

  1. ‘Updated’
  2. this.properties.WebpartTitle=”updated”



When choicegroups field value is selected as ‘dotnet’, same value is populated in the Web part title field.