Function components in React are awesome. They let you create a component without the overhead and extra code of a class. However, up until recently, class components did have an edge over function components. Specifically: class components could have state, whereas function components were doomed to be stateless. Now, with the addition of hooks in …Read: "An introduction to hooks in React"
Dev BlogWelcome to the dev blog, where you can find articles on subject matters such as WordPress code, a11y, Gutenberg and all other things related to programming.
As WordPress developers, we're busy with developing features most of the time. Developing functionalities is awesome, but a lot can go wrong too, unfortunately. One way to help prevent things going awry is having your own blog. Here, I'll explain how writing for my own blog helped me understand WordPress users better and improved my …Read: "Every WordPress developer should have their own blog!"
Plugins and themes from the WordPress.org repository install as stand-alone packages; they need to contain all the code, files, and dependencies needed to function correctly. Because there is no centralized system with an overview of all the dependencies used in different WordPress plugins and themes, they all need to implement their own safety net. Dependencies …Read: "Safely using PHP dependencies in the WordPress ecosystem"
What’s it like building blocks for the new block editor for WordPress? Turns out it’s pretty hard. Our front-end developer Sjardo Janssen spent a considerable amount of time learning how to do this. The new editor is built on technologies unfamiliar for many front-ender, Sjardo found. He also found it incredibly hard obtaining what he …Read: "Developing Gutenblocks is not for the faint of heart"
At Yoast, we like to release often. We're a fan of continuous delivery and currently release every two weeks. As we sometimes get questions about our release cycle, we'd like to tell the entire story on why and how we release and test our plugins before they are ready to be installed on millions of …Read: "Continuous delivery at Yoast"
We're delighted to share the news that our new approach to including rich, complete and extensible Schema.org markup on all sites which run Yoast SEO is now live (from our 11.0 release). This is a project which we've been working on for months, and it was unashamedly ambitious. As search engines make more and more use of structured …Read: "Our revolutionary solution to Schema.org markup"
In our ongoing quest to make yoast.com lightning fast, we've reached a bottleneck when it comes to optimising our CSS. The ways in which WordPress themes manage, handle and output stylesheets just aren't good enough. Technology has changed, the web has evolved, and the tools we have are out of date. We think we can come …Read: "A better, faster approach to CSS in WordPress themes"