r5n-dev / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features
MIT License
1.72k stars 441 forks source link

Remove React.FC from tsrafce #112

Closed ecklf closed 4 years ago

ecklf commented 4 years ago

A change that was also made in the create-react-app template (and approved by Dan Abramov) Long detailed explanation here: https://github.com/facebook/create-react-app/pull/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