Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
85 stars 9 forks source link

TypeScript / react: don't use default import for React in the .d.ts files #183

Open elnygren opened 1 year ago

elnygren commented 1 year ago
// not like this
import React from 'react'

// but like this
import * as React from 'react'
import { Something } from 'react'

if you do import React from 'react' then @shopify/app-bridge-react becomes unusable for people who set allowSyntheticDefaultImports false.