9
9
_ npm_
10
10
11
11
```
12
- npm install --save react-remark
12
+ npm install --save @christianmurphy/ react-remark
13
13
```
14
14
15
15
_ yarn_
16
16
17
17
```
18
- yarn add react-remark
18
+ yarn add @christianmurphy/ react-remark"
19
19
```
20
20
21
21
## Usage
@@ -26,7 +26,7 @@ yarn add react-remark
26
26
27
27
``` tsx
28
28
import React from ' react' ;
29
- import { useRemark } from ' react-remark' ;
29
+ import { useRemark } from ' @christianmurphy/ react-remark' ;
30
30
31
31
const ExampleComponent = () => {
32
32
const [reactContent, setMarkdownSource] = useRemark ();
@@ -43,7 +43,7 @@ export default ExampleComponent;
43
43
44
44
``` tsx
45
45
import React from ' react' ;
46
- import { useRemark } from ' react-remark' ;
46
+ import { useRemark } from ' @christianmurphy/ react-remark' ;
47
47
48
48
const ExampleComponent = () => {
49
49
const [reactContent, setMarkdownSource] = useRemark ();
@@ -70,6 +70,7 @@ export default ExampleComponent;
70
70
71
71
``` tsx
72
72
import React , { useState } from ' react' ;
73
+ import { Remark } from ' @christianmurphy/react-remark' ;
73
74
74
75
const ExampleComponent = () => (
75
76
<Remark >{ `
@@ -87,7 +88,7 @@ export default ExampleComponent;
87
88
88
89
``` tsx
89
90
import React , { useState } from ' react' ;
90
- import { Remark } from ' react-remark' ;
91
+ import { Remark } from ' @christianmurphy/ react-remark' ;
91
92
92
93
const ExampleComponent = () => {
93
94
const [markdownSource, setMarkdownSource] = useState (' ' );
@@ -125,7 +126,7 @@ The source for the story files can be found in [_/stories_](./stories).
125
126
126
127
``` tsx
127
128
import React , { Fragment } from ' react' ;
128
- import { useRemark } from ' react-remark' ;
129
+ import { useRemark } from ' @christianmurphy/ react-remark' ;
129
130
import remarkGemoji from ' remark-gemoji' ;
130
131
import rehypeAutoLinkHeadings from ' rehype-autolink-headings' ;
131
132
@@ -148,7 +149,7 @@ const [reactContent, setMarkdownSource] = useRemark({
148
149
149
150
``` tsx
150
151
import React , { Fragment } from ' react' ;
151
- import { useRemark } from ' react-remark' ;
152
+ import { useRemark } from ' @christianmurphy/ react-remark' ;
152
153
import remarkGemoji from ' remark-gemoji' ;
153
154
import rehypeAutoLinkHeadings from ' rehype-autolink-headings' ;
154
155
0 commit comments