Cleanup snippet categories

This commit is contained in:
Angelos Chalaris
2019-08-21 14:32:14 +03:00
parent 9de7519520
commit 9139ea2ace
5 changed files with 77 additions and 103 deletions

View File

@ -24,7 +24,7 @@
"attributes": {
"text": "Renders a string as plaintext, with URLs converted to appropriate `<a>` elements.\n\n- Use `String.prototype.split()` and `String.prototype.match()` with a regular expression to find URLs in a string.\n- Return a `<React.Fragment>` with matched URLs rendered as `<a>` elements, dealing with missing protocol prefixes if necessary, and the rest of the string rendered as plaintext.\n\n",
"tags": [
"utility",
"visual",
"string",
"fragment",
"regexp",
@ -195,7 +195,7 @@
"attributes": {
"text": "Renders a link formatted to send an email.\n\n- Destructure the component's props, use `email`, `subject` and `body` to create a `<a>` element with an appropriate `href` attribute.\n- Render the link with `props.children` as its content.\n\n",
"tags": [
"viual",
"visual",
"beginner"
]
},

View File

@ -36,7 +36,7 @@
"example": "ReactDOM.render(\r\n <AutoLink text=\"foo bar baz http://example.org bar\" />,\r\n document.getElementById('root')\r\n);"
},
"tags": [
"utility",
"visual",
"string",
"fragment",
"regexp",
@ -267,7 +267,7 @@
"example": "ReactDOM.render(\r\n <Mailto email=\"foo@bar.baz\" subject=\"Hello\" body=\"Hello world!\">\r\n Mail me!\r\n </Mailto>,\r\n document.getElementById('root')\r\n);"
},
"tags": [
"viual",
"visual",
"beginner"
]
},