You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,7 +42,7 @@ In your projects package.json file - add a new script:
31
42
32
43
```
33
44
"script": {
34
-
"docs": "node_modules/.bin/jsdoc -c jsdoc.json"
45
+
"docs": "jsdoc -c jsdoc.json"
35
46
}
36
47
```
37
48
@@ -107,7 +118,7 @@ yarn global add parcel-bundler
107
118
108
119
To document components simply add `@component` in your JSDoc documentation:
109
120
110
-
```
121
+
```jsx
111
122
/**
112
123
* Some documented component
113
124
*
@@ -155,15 +166,15 @@ export default {
155
166
</script>
156
167
```
157
168
158
-
Here props will be taken from `props` property.
169
+
In this case, props will be taken from `props` property.
159
170
160
171
### Preview
161
172
162
173
`@component` plugin also modifies the behaviour of `@example` tag in a way that it can generate an actual __component preview__. What you have to do is to add an `@example` tag and return component from it:
0 commit comments