Created
June 21, 2017 04:54
-
-
Save neroze/4f6604026909caebe937f6cea1371c23 to your computer and use it in GitHub Desktop.
With Props recomposr
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 { Component } from React; | |
import { withProps } form 'recompose' | |
conset HomeLink = withProps({ href: '#/'})('a'); | |
conset ProductLink = withProps({ href: '#/producsts'})('a'); | |
const App = () => | |
<div> | |
<HomeLink>Homo Logo </HomeLink> | |
<ProductLink>Homo Logo </ProductLink> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment