Skip to content

Remove React.FC from tsrafce #112

@ecklf

Description

@ecklf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions