reactjs

在wordpress中使用react - Using Wordpress with React js

日期:2019-06-20 阅读:101

相关: nextjs和wordpress介绍

--------------

更多内容: https://www.iamtimsmith.com/blog/using-wordpress-with-react/

 

By simply adding /wp-json/wp/v2/posts to the end of the url, we will see a JSON output of all of the most recent posts. By simply changing posts to pages, we can see the data for the pages in the TechCrunch site.

从techcrunch这个网站获取数据。

I have created a react starter you can download from here (下载源码)

yarn or npm install (whichever you prefer) and then 
yarn start or npm run start.

------------------

其他react和wordpress教程:

https://www.smashingmagazine.com/2018/03/react-wordpress-web-app/

<<点击返回