2

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

thsorens
  • 1,308
  • 12
  • 21

2 Answers2

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
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