Skip to content

Заменить const-декларации на let #7

Description

@sergeche

См. TODO в src/compiler/ComponentDeclaration.ts

Если пропсы были объявлены как const-переменные, нужно заменить const на let, чтобы обновления правильно работали.

Пример:

function MyComponent(props) {
    const { a } = props;
    const b = props.b;
}

Везде const нужно заменить на let

Activity

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