Skip to content

Create hook for React - Syntax error with types #14

@samcorcos

Description

@samcorcos

I think there might be a compilation issue before it was published. I get the following when I try to run it:

SyntaxError: /Users/xxxx/code/meerkat/meerkat-web/node_modules/aws-amplify-react-hooks/src/index.js: Unexpected token (2:12)

  1 | // @flow
> 2 | import type { Node, ComponentType, Element } from 'react'
    |             ^
  3 | import React, { createContext, useEffect, useContext, useReducer } from 'react'
  4 | import _ from 'lodash'
  5 | import type { ActionT, StateT } from './types'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions