You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Problem using reactJS in angularJS app my problem I have this error. we I don't know what is
Warning: Something is calling a React component directly. Use a
factory or JSX instead. :
11607 TypeError: Cannot read property '__reactAutoBindMap'
of undefined
at Constructor (react-0.13.1.js:5816)
at Object.fn (ReceptionController.js:250)
at Scope.$digest (angular.js:14243)
at Scope.$apply (angular.js:14506)
at done (angular.js:9659)
at completeRequest (angular.js:9849)
at XMLHttpRequest.requestLoaded (angular.js:9790)(anonymous function) @ angular.js:11607
ReceptionReactController
/** @jsx React.DOM*/
(function () {
'use strict';
var app = angular.module('dionysus');
var ReceptionReactController = function ($scope) {
};
app.controller('ReceptionReactController', ['$scope', ReceptionReactController]).directive('fastNg', function(){
return {
restrict: 'E',
scope: {
framework: '='
},
link: function (scope, el, attrs) {
scope.$watch('framework', function (newValue, oldValue) {
React.render(
MYCOMPONENT({ framework: newValue }),
el[0]
);
})
}
}
});
}());
MYCOMPONENT.js
var MYCOMPONENT = React.createClass({
displayName: 'MYCOMPONENT',
render: function () {
return React.DOM.div(null, "Rendering faster in AngularJs with ", this.props.framework);
}
});
I have Problem using reactJS in angularJS app my problem I have this error. we I don't know what is
MYCOMPONENT.js
view
The text was updated successfully, but these errors were encountered: