grommet-starter-new-app icon indicating copy to clipboard operation
grommet-starter-new-app copied to clipboard

Use function components to reflect changes in CRA

Open JacksonKearl opened this issue 5 years ago • 0 comments

Closes #8.

Also, this could use useContext, which would replace

<ResponsiveContext.Consumer>
   {size => 
     ....

with

const size = useContext(ResponsiveContext)

But that would require the side bar component to be extracted out to its own function, as the hook wont work outside of the Grommet call.

JacksonKearl avatar Aug 08 '19 22:08 JacksonKearl