Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Basic post navigation with React and the Wp Rest Api
mport React, { useState, useEffect } from "react";
import Axios from "axios";
export default function App() {
// ...
useEffect(() => {
Axios.get("").then(response => {
}, [setPosts]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment