title: How do I pass parameters to react?
body: <p>I'm trying to pass a parameter to my react project. I set it up with create-react-app.</p>
  
  <p>I set up package.json like so:</p>
  
  <pre><code>  "main": "index.js",
    "scripts": {
      "start": "webpack-dev-server --open --mode development",
      "build": "webpack --mode production"
    },
  </code></pre>
  
  <p>index.js:</p>
  
  <pre><code>console.log(process.argv)
  </code></pre>
  
  <p>I start it up and pass in my parameter:</p>
  
  <pre><code>yarn start --serverPort=3531
  </code></pre>
  
  <p>But then process.argv is just an empty array. How can I pass parameters to the react app?</p>