To create a Quiz with React, we need to configure our scripts that will compile modern JavaScript (ESNext) and JSX. We could go into and construct everything on our own or we can use tools that already exist. In this tutorial, we will see how to use the react-wp-scripts by Human Made.
Category: JavaScript
Building a Quiz with React and WordPress REST API: Introduction
Quizzes are really popular in WordPress and many of them include steps. Using React, we are going to build a simple quiz with JavaScript that will render one question per time. Let’s learn how to use React and connect with the WordPress REST API to manage the answers and questions.
How to create a Gutenberg Block for Displaying a Post
Gutenberg is coming and we need to be prepared for it. In this tutorial, we will learn how to create a block that will display a post.
Powering the WordPress Search with React and REST API
The WordPress Search Widget is a classic HTML Form, but what if we want to show the results right away? In this tutorial, we will power up the WordPress Search Form with React and REST API to show the results immediately.
How to use React to Render WordPress Content from the REST API
Sites powered by newer versions of WordPress have the REST API enabled by default. In this tutorial, we will use React to pull the latest posts from such sites and render them as articles with a summary.