Skip to content

Commit 0df9617

Browse files
authored
Revert "update react perf docs (#8060) and (#6174)"
1 parent 080f21e commit 0df9617

File tree

3 files changed

+0
-252
lines changed

3 files changed

+0
-252
lines changed

docs/docs/addons-perf.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ next: test-utils.html
1414
import Perf from 'react-addons-perf' // ES6
1515
var Perf = require('react-addons-perf') // ES5 with npm
1616
var Perf = React.addons.Perf; // ES5 with react-with-addons.js
17-
18-
// Usually importing Perf in ES6 with a module bundler
19-
// doesn't make Perf available as global and throws a
20-
// ReferenceError so create a global
21-
window.Perf = Perf;
2217
```
2318

2419

@@ -62,34 +57,6 @@ The following methods use the measurements returned by [`Perf.getLastMeasurement
6257

6358
* * *
6459

65-
## Example Usage
66-
67-
We will take simple example of a form which can be used to submit comments and then listing all comments. The example code is [available on GitHub](https://github.com/dhyey35/react-example-for-performance/blob/master/public/scripts/example.js).
68-
69-
```javascript
70-
import { Component } from 'react'
71-
import Perf from 'react-addons-perf'
72-
73-
const Comment = (props) => (
74-
<div className="comment">
75-
<h2 className="commentAuthor">
76-
{props.author}
77-
</h2>
78-
<span>{props.children.toString()}</span>
79-
</div>
80-
)
81-
//code...
82-
83-
ReactDOM.render(
84-
<CommentBox />,
85-
document.getElementById('content')
86-
);
87-
```
88-
Open the developer console in the browser and type `Perf.start()`. Then perform the action you want to monitor, like submitting a form. Finally, type `Perf.stop()` and `Perf.getLastMeasurements()` to get the measurements. See the Reference below for more methods.
89-
90-
![](/react/img/docs/addons-perf.png)
91-
92-
* * *
9360
## Reference
9461

9562
### `start()`
@@ -178,4 +145,3 @@ Perf.printDOM(measurements)
178145
```
179146

180147
This method has been renamed to [`printOperations()`](#printoperations). Currently `printDOM()` still exists as an alias but it prints a deprecation warning and will eventually be removed.
181-

docs/downloads/perf-tutorial.html

Lines changed: 0 additions & 218 deletions
This file was deleted.

docs/img/docs/react-perf.png

-62.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)