Skip to content

Throw warning when undefined passed in as event callback #2210

Closed
@dmitrig01

Description

@dmitrig01

Maybe there's a valid use case for this, but I had something like:

module.exports = React.createClass({
    _onsave: function() {
    },
    render: function() {
        return (
            <button className="btn btn-green btn-regular" onClick={ this._onSave }>Save</button>
        );
    }
});

if it'd yelled at me, it would have been easier to debug :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions