import Head from 'next/head' import React from 'react' function Foo() { const [displayed, toggle] = React.useState(true) return ( <> {displayed ? (