Unlike previous versions, almost everything in this version of react-router are components that you use just like everything
else in React.
import { Route, Link, BrowserRouter } from 'react-router-dom'| export default function(babel) { | |
| const { types: t } = babel; | |
| return { | |
| name: "test-only-export", | |
| visitor: { | |
| ExportNamedDeclaration(path) { | |
| const lc = path.node.leadingComments; | |
| const cNode = lc && lc[0]; | |
| const cValue = cNode && cNode.value; |