mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Upsell dev tools
People probably don't know these exist. Add some information about React dev mode as well as a link to the developer tools when using Chrome.
This commit is contained in:
committed by
Paul O’Shannessy
parent
bcacd17f8b
commit
d8a8f6a881
@@ -68,6 +68,17 @@ var React = {
|
||||
}
|
||||
};
|
||||
|
||||
if (__DEV__) {
|
||||
var ExecutionEnvironment = require('ExecutionEnvironment');
|
||||
if (ExecutionEnvironment.canUseDOM &&
|
||||
navigator.userAgent.indexOf('Chrome') > -1) {
|
||||
console.debug(
|
||||
'Download the React DevTools for a better development experience: ' +
|
||||
'http://fb.me/react-devtools'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Version exists only in the open-source version of React, not in Facebook's
|
||||
// internal version.
|
||||
React.version = '0.9.0-alpha';
|
||||
|
||||
Reference in New Issue
Block a user