Skip to content
Discussion options

You must be logged in to vote

Inside your components/Layout.js file you have:

const [children, setChildren] = useState(props.children);

which will not work.

You need to instead just do:

const Layout = props => {
  return (
    <div>
      <Header />
      {props.children}
    </div>
  )
}

export default Layout;

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@impactcolor
Comment options

Comment options

You must be logged in to vote
1 reply
@impactcolor
Comment options

Answer selected by jamesmosier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13200 on May 22, 2020 06:56.