Skip to content

Instantly share code, notes, and snippets.

@kenmori
Last active February 15, 2017 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenmori/6c3cb9d5d6a15205a9a54a15e7fad37e to your computer and use it in GitHub Desktop.
Save kenmori/6c3cb9d5d6a15205a9a54a15e7fad37e to your computer and use it in GitHub Desktop.
flowtype/react. Required module not found
import React, { Component } from 'hogehogefolder/react';//error react. Required module not found
const MailToBtn = ({mailAddress, addClass, children }: Props) => (
<a className='block w100 ' href={mailAddress}>
<button className={`${addClass} appearanceNone outlineNone btnMain btnShadow1 size1 type1 btn100 pad0`} type='button'>
{children}
</button>
</a>
)
export default MailToBtn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment