mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #5725 from RochesterinNYC/patch-1
Clarify React class constructor comments
This commit is contained in:
@@ -748,7 +748,7 @@ var ReactClass = {
|
||||
*/
|
||||
createClass: function(spec) {
|
||||
var Constructor = function(props, context, updater) {
|
||||
// This constructor is overridden by mocks. The argument is used
|
||||
// This constructor gets overridden by mocks. The argument is used
|
||||
// by mocks to assert on what gets mounted.
|
||||
|
||||
if (__DEV__) {
|
||||
|
||||
Reference in New Issue
Block a user