It seems you are trying to run JSX directly in the browser. JSX is not runnable in browsers, so you must first use a transpiler such as Babel to convert it into a runnable JavaScript file that you can then import on your page.