Skip to content

Change template project to functional rather than class-based component. #6558

Closed

Description

@nonzeronucleus

The template project for create-react-app still uses React.Component in App.js.

Given that hooks are looking to deprecate class-based components, now would seem a good time to turn it into a functional component.

It look like it's a simple enough change. But before I do it, I wanted to make sure that no one else was doing this, and that there wasn't a good reason to keep App.js as class-based.

Activity

  1. iansu commented on Mar 2, 2019

    @iansu
    Contributor

    There's an existing PR that does exactly this: #6451

  2. deleted a comment from stale on Apr 2, 2019
  3. locked and limited conversation to collaborators on Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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