Skip to content

Instantly share code, notes, and snippets.

@pinglinh
Last active March 27, 2018 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinglinh/76be7d47e1bd345740fe56e2f07825ab to your computer and use it in GitHub Desktop.
Save pinglinh/76be7d47e1bd345740fe56e2f07825ab to your computer and use it in GitHub Desktop.
Refactoring React components : SearchResult 1.3.2
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