We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fb1935 commit 99729f1Copy full SHA for 99729f1
1 file changed
README.md
@@ -13,16 +13,15 @@ yarn add react-segmenter
13
## Usage
14
15
```tsx
16
-import React, { Component } from 'react'
+import React from 'react'
17
18
-import MyComponent from 'react-segmenter'
19
-import 'react-segmenter/dist/index.css'
+import { TextSegmenter } from 'react-segmenter'
20
21
-class Example extends Component {
22
- render() {
23
- return <MyComponent />
24
- }
25
-}
+const App: React.FC = () => {
+ return (
+ <TextSegmenter>Hello World!</TextSegmenter>
+ );
+};
26
```
27
28
## License
0 commit comments