Skip to content

Remove React.FC from tsrafce #112

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

Closed
ecklf opened this issue Mar 10, 2020 · 0 comments · Fixed by #113
Closed

Remove React.FC from tsrafce #112

ecklf opened this issue Mar 10, 2020 · 0 comments · Fixed by #113

Comments

@ecklf
Copy link
Contributor

ecklf commented Mar 10, 2020

A change that was also made in the create-react-app template (and approved by Dan Abramov)
Long detailed explanation here: facebook/create-react-app#8177

Change proposal:

import React from 'react'

interface Props {
    
}

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

export default Component

to

import React from 'react'

interface Props {
    
}

const Component = (props: Props) => {
    return (
        <div>
            
        </div>
    )
}

export default Component
ecklf added a commit to ecklf/vscode-es7-javascript-react-snippets that referenced this issue Mar 10, 2020
ice-chillios pushed a commit that referenced this issue Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant