Uncaught SyntaxError: Unexpected <

class Selects extends React.Component {
  render() {
    return (

//Uncaught SyntaxError: Unexpected token <

This is rather beyond me. Why am I getting this?

It’d be handy to see the rest of the code to understand the context, but things to look at are correct type in any containing script tag (like text/babel or text/jsx), correct component import syntax, using pragma in older versions of React.

1 Like