Skip to content

Commit

Permalink
Add search button component ref #22
Browse files Browse the repository at this point in the history
  • Loading branch information
philawsophizing committed Jun 6, 2017
1 parent 16ca391 commit e42b09d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/search_button.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

const SearchButton = (props) => {
const handle = () => {
props.clickHandler(props.currentGHouse);
};

return (
<button onClick={handle}>{props.currentGHouse}</button>
);
};
export default SearchButton;

0 comments on commit e42b09d

Please sign in to comment.