Peter is a full-stack Web Developer at Mozilla where he works in the Web Engineering team. His passion is building fun web apps that are fast as greased lightning and has published open source software for over 15 years. He blogs and experiments on www.peterbe.com.
Peter's articles
Writing inefficient React components can cause them to rerender too often. Peter Bengtsson looks at ways of creating and optimizing stateless components.
Peter Bengtsson walks through building a wrapper for the Fetch API, step-by-step, to cache fetched AJAX results and avoid repeated requests to the server.
Peter Bengtsson teaches you what a state is and how to persist it. The article includes an example of persisting a state with AngularJS.
Peter Bengtsson shows how to build a web page able to detect the distance of your face from the screen with JavaScript.
Peter Bengtsson discusses how to measure the performance of your JavaScript functions and how to avoid some common pitfalls.