Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsrafc does not contain a default export #88

Closed
ecklf opened this issue Oct 15, 2019 · 3 comments
Closed

tsrafc does not contain a default export #88

ecklf opened this issue Oct 15, 2019 · 3 comments

Comments

@ecklf
Copy link
Contributor

ecklf commented Oct 15, 2019

// tsrafc
import React from 'react'

interface Props {
  
}

export const App: React.FC<Props> = () => {
  return (
    <div>
      
    </div>
  )
}

Will be considered as faulty since not containing a default export.

I'd suggest removing tsrafc since you cannot call default export const X.

@ecklf ecklf changed the title tsrafc has invalid syntax tsrafc does not contain a default export Oct 15, 2019
@chillios-dev
Copy link

@impulse removed in 2.5.0 :)

@drakang4
Copy link
Contributor

drakang4 commented Aug 14, 2020

What makes this being considered as faulty?
I personally prefer this way than tsrafce and didn't find any problem of it. It would be great to restore tsrafc as rafc is provided in JS syntax.

@ecklf
Copy link
Contributor Author

ecklf commented Aug 14, 2020

@drakang4 makes sense. Feel free to readd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants