This is the starter theme for using graphql endpoint of WordPress with react+typescript+apollo-client
- You need to enable WpGraphQl plugin in WordPress please read doc (here)[https://docs.wpgraphql.com/]
- clone this repo
- cd react-src
- yarn start (development)
- yarn build (production)
- with
yarn build
command you will get newly generated folder with the same name of the theme - place that to the server
- if you want to rename
- rename the folder name
- rename its include in index.php