Skip to content

Commit 00ff78e

Browse files
authored
Merge pull request #19 from nytm/build-200
v2.0.0
2 parents 35c1e6b + 49604fd commit 00ff78e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
## Installation
1010

1111
```
12-
npm install --save nytm/nyt-react-tracking#v1.0.0
12+
npm install --save nytm/nyt-react-tracking#v2.0.0
1313
```
1414

15-
(Or whatever is [latest](https://github.com/nytm/nyt-react-tracking/releases), it was 1.0.0 as of this writing)
15+
(Or whatever is [latest](https://github.com/nytm/nyt-react-tracking/releases), it was 2.0.0 as of this writing)
1616

1717
## Usage
1818
@track() expects two arguments, `trackingData` and `options`.
@@ -92,7 +92,7 @@ export default class App extends Component {
9292

9393
NOTE: It is recommended to do this on some top-level component so that you only need to pass in the dispatch function once. Every child component from then on will use this dispatch function.
9494

95-
#### When to use `options.dispatchOnMount`
95+
### When to use `options.dispatchOnMount`
9696

9797
To dispatch tracking data when a component mounts, you can pass in `{ dispatchOnMount: true }` as the second parameter to `@track()`. This is useful for dispatching tracking data on "Page" components, for example.
9898

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nyt-react-tracking",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Declarative tracking for React apps.",
55
"author": "The New York Times",
66
"contributors": [

0 commit comments

Comments
 (0)