Skip to content

A craco plugin to use graphql with create-react-app

Notifications You must be signed in to change notification settings

dotamir/craco-graphql

Repository files navigation

craco-graphql

A craco plugin to load .graphql query documents into your create-react-app application.

Installation

Run the following command to install craco-graphql in your project:

npm install --save-dev craco-graphql @craco/craco

OR

yarn add --dev craco-graphql @craco/craco

Usage

Add this configuration to your craco.config.js configuration file:

// craco.config.js
const CracoGraphQLPlugin = require('craco-graphql');

module.exports = {
	plugins: [{ plugin: CracoGraphQLPlugin }],
};

License

The MIT license

About

A craco plugin to use graphql with create-react-app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published