In the first tutorial of the Headless WordPress series, we have created a way to login with your user account using JWT. This tutorial will show you how you can use the same JWT flow when trying to login users using Google.
Read MoreTag: rest api
Building a Quiz with React and WordPress REST API: Score Component
The Score Component for our Quiz will render the data that we are retrieving through REST API. We will create a new React Component Score
and add it to our Quiz
Component.
Building a Quiz with React and WordPress REST API: Question and Answer Components
For a Quiz to function properly, we need to have questions and answers. In the previous tutorial, we create the main React Component Quiz
. We will learn, in this tutorial, how to create a Question
and Answer
Component.
Building a Quiz with React and WordPress REST API: CPT and REST API Routes
We will use the WordPress REST API Routes to retrieve questions and scores used for building our Quiz in React. We need a route to retrieve the questions with their answers and to submit the answers so we can get our result. In this tutorial, we will proceed to our WordPress roadmap and define our custom post type, metabox and also the WordPress REST API Routes.
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.