After creating a site with create-react-app, one sees that JSX gets rendered in the index.js file with the ReactDOM.render() method.
How can it be, then, that JSX is still being parsed outside that method, as is shown here:
index.js:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
const jsxArray = [
<div>test</div>,
<div>test</div>,
<div>test</div>
];
console.log(jsxArray);
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
Output in console:
