Created
July 9, 2018 20:40
-
-
Save brizental/a993d903f08819abdcce437e458046f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import PropTypes from 'prop-types' | |
import { Link as LinkRouter } from 'react-router-dom' | |
import './Link.css' | |
function Link({ to, children }) { | |
return ( | |
<LinkRouter className="link" to={to}> | |
{children} | |
</LinkRouter> | |
) | |
} | |
Greeting.propTypes = { | |
to: PropTypes.string.isRequired, | |
children: PropTypes.object | |
}; | |
export default Link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment