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

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

dmandwp系统 - wordpress系统和DM系统区块建站>>

相关: nextjs和wordpress介绍




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.


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.