UNPKG
covfefe-react
Version:
latest (0.0.2)
0.0.2
0.0.1
Put meaning behind your sentences.
github.com/ajwhite/covfefe-react
ajwhite/covfefe-react
covfefe-react
/
src
/
covfefe.js
17 lines
(13 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
React
from
'react'
import
PropTypes
from
'prop-types'
import
covfefe
from
'covfefe'
export
default
function
Covfefe
(
{children, ...rest}
) {
if
(
typeof
children !==
'string'
) {
return
children; }
return
(
<
span
{
...rest
}>
{covfefe(children)}
</
span
>
); }