October 2019 Blog Posts

All blog posts that were published in October 2019. To view posts from other months, use the archive control in the right-hand sidebar to pick the specified month from the specified year.

Microsoft MVP Logo

Jest Preset Update October 2019

Tuesday, October 8, 2019 8:30 AM

Late last year I published a few Jest presets to simplify adding automated testing to your SharePoint Framework (SPFx) projects. These are complete with example tests including testing the rendering of components, testing async functions using promises or callbacks and even simulating user events. You can learn more about the presets in the original post, Enable Jest testing of SharePoint Framework Projects in One Simple Step. In this post, I want to share some updates to the presets that have been published.

Read More

Dealing with Undefined 'this' in React Event Handlers in a Performant Way

Thursday, October 3, 2019 9:30 AM

When I’m teaching React to developers, one thing that comes up often is dealing with a common error. But here’s the interesting thing: it’s not running into the error that comes up all the time, its how to deal with it that surprises them. I’ve always wanted to have something to point to that the scenario & why one option is better than others, even though there are plenty of ways to address the issue. That’s what this post is!

Read More