Tag: React

  • Using Bento Components for Gutenberg Block Development

    Using Bento Components for Gutenberg Block Development

    Last week saw the launch of Bento, an easy to use component library that helps you achieve a great page experience. Today, I would like to share some thoughts on how Bento components can be used in Gutenberg in order to reduce development and maintenance costs while at the same time ensuring great user experience…

  • Safely Using Strings Containing Markup in React with DOMParser

    Safely Using Strings Containing Markup in React with DOMParser

    For the Web Stories WordPress plugin I came up with a solution to parse strings containing markup in a React application by leveraging the DOMParser interface. This is especially useful when dealing with translations where you would want to avoid any string concatenation. I’ve previously written quite a bit on JavaScript internationalization in WordPress 5.0+.…