Last active
March 27, 2018 10:46
-
-
Save pinglinh/76be7d47e1bd345740fe56e2f07825ab to your computer and use it in GitHub Desktop.
Refactoring React components : SearchResult 1.3.2
This file contains 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"; | |
const SearchResult = props => { | |
return ( | |
<ul> | |
<li> | |
<a href={props.result.webUrl} target="_blank"> | |
{props.result.webTitle} | |
</a> | |
</li> | |
</ul> | |
); | |
}; | |
export default SearchResult; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment