Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import React, { useState, useEffect } from "react";
import Axios from "axios";
import WpApiContent from "./WpApiContent.js";
export default function App() {
const [post, setPost] = useState(null);
useEffect(() => {
response => {
}, [setPost]);
return (
<div className="App">
{post && (
<WpApiContent content={post.content.rendered} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.