Use a better notation for exporting JS components and functions

This commit is contained in:
Deluan
2020-11-10 19:27:28 -05:00
parent 8a44f61189
commit 9d2426a601
37 changed files with 112 additions and 188 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
import React from 'react'
import { docsUrl } from '../utils/docsUrl'
import { docsUrl } from '../utils'
const DocLink = ({ path, children }) => (
export const DocLink = ({ path, children }) => (
<a href={docsUrl(path)} target={'_blank'} rel="noopener noreferrer">
{children}
</a>
)
export default DocLink