Skip to content

Commit 32b731e

Browse files
committed
Update example
1 parent 09849dd commit 32b731e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

example/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { PropTypes } from 'react';
22
import { render } from 'react-dom';
3-
import reactReplaceString from 'react-replace-string';
3+
import reactReplaceString from 'react-string-replace';
44

55
const HighlightNumbers = React.createClass({
66
propTypes: {
@@ -18,8 +18,7 @@ const HighlightNumbers = React.createClass({
1818
},
1919
});
2020

21-
22-
const content = `Hey my number is 555-555-5555.`;
21+
const content = 'Hey my number is 555-555-5555.';
2322

2423
// Render the app
2524
render(<HighlightNumbers content={content} />, document.getElementById('root'));

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"webpack": "^1.12.9",
2525
"webpack-dev-middleware": "^1.4.0",
2626
"webpack-hot-middleware": "^2.6.0",
27-
"react-replace-string": "*"
27+
"react-string-replace": "*"
2828
},
2929
"dependencies": {}
3030
}

0 commit comments

Comments
 (0)