Skip to content

Tag: reactjs

React JS Error: is not defined react/jsx-no-undef

I’m developing a map functionality using ReactJS, My app.js file is: The error is: How can I solve this problem? Answer Try using When you use import ‘module’ it will just run the module as a script. This is useful when you are trying to introduce side-effects into global namespace, e. g. po…

React router not showing browser history

I’m learning from this tutorial but I keep getting this error: ‘react-router’ does not contain an export named ‘browserHistory’. The file that has react-router is this: Answer You need to get browserHistory from the history module now. Note that they changed the module API recent…

React JS get current date

I want to output the current date in my componnent. In the console my code works, but the React console says: “bundle.js:14744 Uncaught RangeError: Maximum call stack size exceeded” My component looks like that: Yeah, I know I’m a pretty beginner, but maybe someone can help me. I googled for…