Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    This is fine at global scope, but in some module context you probably want to ensure right context for the callback e.g. $.ajax({url: "api/data", success: fooDone.bind(this)});
    – steve.sims
    Commented Jul 24, 2017 at 6:14
  • 13
    This is actually incorrect as React is one-way data binding Commented May 4, 2018 at 15:57
  • 3
    @MatthewBrent you are not wrong, but not right also, React props are object and if changed, they change throughout the application, but its not a way that React developer recommend to use it...
    – Alireza
    Commented May 14, 2018 at 7:34