I solved it using type = “text/babel”
<script src="https://stackoverflow.com/questions/20905227/js/reactjs/main.js" type = "text/babel"></script>
More Related Contents:
- How to pass data from child component to its parent in ReactJS?
- What’s the difference between “super()” and “super(props)” in React when using es6 classes?
- What is the best way to access redux store outside a react component?
- Is it possible to use if…else… statement in React render function?
- Component does not remount when route parameters change
- React.createElement: type is invalid — expected a string
- What is use of curly braces in an ES6 import statement?
- Handling async request with React, Redux and Axios?
- react setState with dynamic key
- Sending the bearer token with axios
- What does it mean when they say React is XSS protected?
- What is withRouter for in react-router-dom?
- Remove console.logs with Webpack & Uglify
- Target Active Link when the route is active in Next.js
- React – the right way to pass form element state to sibling/parent elements?
- Persistent navigation in a NextJs _app
- react app showing empty page when redirecting on production build
- How to resolve “Cannot use import statement outside a module” from Jest when running tests?
- VirtualizedList: You have a large list that is slow to update
- is it possible to React.useState(() => {}) in React?
- Jest setup “SyntaxError: Unexpected token export”
- Passing object as props to jsx
- create-react-app: how to use https instead of http?
- Webpack & Typescript image import
- Passing values through React-Router v4
- How to import a .txt file from my source?
- How to listen to localstorage value changes in react?
- Why my render method is react called twice
- Put A Warning If Page Refresh in ReactJS
- React Router V6 – Error: useRoutes() may be used only in the context of a component