cra-template-ab-typescript

The base TypeScript template for Create React App.

Usage no npm install needed!

<script type="module">
  import craTemplateAbTypescript from 'https://cdn.skypack.dev/cra-template-ab-typescript';
</script>

README

cra-template-ab-typescript

This is the TypeScript template for Create React App.

To use this template, add --template ab-typescript when creating a new app.

For example:

npx create-react-app my-app --template ab-typescript

# or

yarn create react-app my-app --template ab-typescript

For more information, please refer to:

How to use

We use three libraries for graphql (read how to install them):

Scripts

To generate apollo hooks:

yarn gql:codegen

If you want to run fake API then:

yarn gql:faker

Issues

Sometimes if you run the app you can see issues with babel. Try remove node_modules and yarn.lock and install it again