JavaScript html element renders as variable name

While attempting to use React.js and maybe or most likely I am doing something wrong? But when I run React.Render() nothing visible renders, however. Viewing the DOM through Chromes console I can see something happen just nothing anything recognizes.

JSX

/* global React */
var notifying = {};
(function () {
    'use strict';
    notifying = React.createClass({
        getInitialState: function () {
            return { isSeen: false };
        },
        _handleDismissalClick: function () {
            this.setState({ isSeen: this.isSeen ? false : true });
        },
        render: function () {
            return ( <div className={'alert alert-success'} role={'alert'}> SOMETHING </div> );
        }
    });
})();

(function(){
    'use strict';
    React.render(<notifying />, document.querySelector('.__content'));
})();

JS

/* global React */
var notifying = {};
(function () {
    'use strict';
    notifying = React.createClass({displayName: "notifying",
        getInitialState: function () {
            return { isSeen: false };
        },
        _handleDismissalClick: function () {
            this.setState({ isSeen: this.isSeen ? false : true });
        },
        render: function () {
            return ( React.createElement("div", {className: 'alert alert-success', role: 'alert'}, " SOMETHING ") );
        }
    });
})();

(function(){
    'use strict';
    React.render(React.createElement("notifying", null), document.querySelector('.__content'));
})();

In the DOM the output is

<notifying data-reactid=".0"></notifying>

can anyone explain to me what I did wrong where so I can stop making this mistake?

Answer:1

given the following: constructor () { super(); this.state = { inputs : [ { type: 'email', placeholder: 'Email Address' } ] }; } render () { return { &...

given the following: constructor () { super(); this.state = { inputs : [ { type: 'email', placeholder: 'Email Address' } ] }; } render () { return { &...

  1. loop over form controls angular
  2. loop over formarray
  3. loop over form data
  4. loop over formgroup controls
  5. loop over form javascript
  6. loop through form controls angular
  7. loop through form elements jquery
  8. loop through form elements javascript
  9. loop through form elements
  10. loop through formarray
  11. loop through form inputs jquery
  12. loop through form data
  13. angular loop through formarray
  14. loop through form controls vba
  15. loop through form fields django
  16. loop through form controls
  17. loop through form inputs
  18. loop through form group
  19. loop through form fields javascript
  20. loop through form fields jquery

I have the following javascript function that prevents form submission if all required fields are not complete and is part of a form I am creating using Google Apps Scripts. Note that the #...

I have the following javascript function that prevents form submission if all required fields are not complete and is part of a form I am creating using Google Apps Scripts. Note that the #...

I have an action creator which does an expensive calculation and dispatches an action every time the user inputs something (basically real time updating). However, if the user inputs multiple things, ...

I have an action creator which does an expensive calculation and dispatches an action every time the user inputs something (basically real time updating). However, if the user inputs multiple things, ...

How could I create Pyramide of Stars that increase every row by 2 like that: * * * * * * * * * * * * * * * * My currently code: for (var x = 0; x < 5; x++) { for (var y = 0; y <= x; y = y ...

How could I create Pyramide of Stars that increase every row by 2 like that: * * * * * * * * * * * * * * * * My currently code: for (var x = 0; x < 5; x++) { for (var y = 0; y <= x; y = y ...