Skip to content

Chapter 14 input checkbox after Context changes #121

@douglasgitpl

Description

@douglasgitpl

Hi,

I'm having trouble with the code between 412-416.

After making the changes on page 416 and when I started using Context, I noticed that the input checkbox doesn't work anymore to disable/enable the sort button and the button doesn't change colors either.
I noticed that the input checkbox's onChange property is being set to contextData.toggleProMode which in ProModeContext.js is set to an empty function. I think this might be the code change that is causing the errors above, because before it was set to the toggleProMode function in App.js that actually worked. Can someone help here?

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