I try to implement Sign in with Facebook to my app (next.js), which require me to put tag to my html file, but with next.js is not static page, so I don't have html file. This says I should create /public/static/script.js and put my code something like this:
import Head from 'next/head';
import MyAwesomeComponent from '../components/mycomponent';
export default () => (
  <div>
    <Head>
      <script type="text/javascript" src="/static/script.js"></script>
    </Head>
    <MyAwesomeComponent />
  </div>
)
Is that the way to do it is it a good practice, or I'm doing it wrong