Skip to content

Instantly share code, notes, and snippets.

@neroze
Created June 21, 2017 04:54
Show Gist options
  • Save neroze/4f6604026909caebe937f6cea1371c23 to your computer and use it in GitHub Desktop.
Save neroze/4f6604026909caebe937f6cea1371c23 to your computer and use it in GitHub Desktop.
With Props recomposr
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