title: How to replace String with user input values for storing in a variable?
body: <p>Here is the code :</p>
  <pre><code>var raw = &quot;{\r\n   \&quot;__metadata\&quot;: {\r\n        \&quot;type\&quot;: \&quot;SP.Data.TestPostListItem\&quot;\r\n    },\r\n    \&quot;Title\&quot;: \&quot;Ankit\&quot;,\r\n    \&quot;EmpID\&quot;: \&quot;698\&quot;\r\n}&quot;;
  </code></pre>
  <p>I have two user input values which I want to replace.
  <strong>Ankit</strong> with <strong>name</strong> and
  <strong>698</strong> with <strong>empid</strong></p>
  <p>I have stored the user input values using useState like this</p>
  <pre><code>const [name, setName] = useState(&quot;&quot;);
  const [empid, setEmpid] = useState(&quot;&quot;);
  </code></pre>
  <p>Can anyone help me with this please?</p>