At times we all want a sample that we can go back to, look at the code and its Readme to learn how to do that one thing you want to do or you are just curious to see what’s possible. In that spirit, I have been working on such sample and its now available at GitHub: React Todo Basic
A simple todo web part built using react to showcase some of the SharePoint Framework developer features, utilities and best practices in building react based web parts.
The web part currently showcases the following features and capabilities:
- React pattern
- Status renderers
- Lodash utility library
- Page display modes
- Loading SharePoint data in property pane
- Handling empty data in property pane fields
- Data providers
- Using SharePoint HttpClient to fetch SharePoint data
More features and capabilities like the following will be added as SharePoint Framework matures:
- Unit testing your web part
- Building accessible web parts
What about an angular web part?
React is simple, lean and something that I know, so I started this project with react. However, you are most welcome to adapt and contribute this sample into an angular web part if you know angular.