title: Expression Expected in React using Switch Statement
body: <p>I am using switch statement inside a react file .Getting Expression Expected error in first case line.</p>
  
  <pre><code>export default ({handle, state}) =&gt; (
    &lt;div style={styles.container} &gt;
      &lt;h3 style={{margin: 0, marginBottom: 15}}&gt;InputData&lt;/h3&gt;
      {items.map((item) =&gt; (
        &lt;div style={styles.lineContainer}&gt;
          switch(item.name){
            case "name1": return &lt;InputBox/&gt;;
            case "name2": return &lt;SelectBox/&gt;;
            case "name3": return &lt;&lt;SelectBox/&gt;;/&gt;;
            default: return &lt;InputBox/&gt;
          }
        &lt;/div&gt;
      ))}
    &lt;/div&gt;
  );
  </code></pre>