Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw warning when undefined passed in as event callback #2210

Closed
dmitrig01 opened this issue Sep 19, 2014 · 1 comment
Closed

Throw warning when undefined passed in as event callback #2210

dmitrig01 opened this issue Sep 19, 2014 · 1 comment

Comments

@dmitrig01
Copy link

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

@sophiebits
Copy link
Collaborator

Dupe of #1225, more or less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants