Built JSX with JsxBundleConfig, used angular ngReact directives to render react within angular. Every time i tried to include a react-component, the error Cannot read property 'render' of undefined appeared in the console, and nothing was rendered
Asked
Active
Viewed 9,773 times
2 Answers
10
After knocking my head against the wall for a while, i found out that the react-dom js was not included in my project.

thsorens
- 1,308
- 12
- 21
-
5Thank god, you saved my wall :) – Anil Kumar Pandey Nov 03 '15 at 10:02
-
1In my case it stopped working after upgrading reactjs, so i guess they were splitting functionality into separate files at some point. Not including the new "react-dom.js" file causes this particular error. – epegzz Nov 12 '15 at 19:52
-
They split that on the version after 13.3. – thsorens Aug 03 '16 at 19:38
0
Don't forget to include following lines
import React from 'react';
import ReactDOM from 'react-dom';
hope I have help someone.

Prageeth godage
- 4,054
- 3
- 29
- 45