diff --git a/App.jsx b/App.jsx
index e380961..302d68a 100644
--- a/App.jsx
+++ b/App.jsx
@@ -20,6 +20,19 @@ function testHandler(json) {
console.log(json);
}
+function Entry(props) {
+ const entry = props.entry;
+ return (
+
+ { entry.sai } - { entry.eng }
+
+ { entry.syn_category }
+
+ Type: { entry.morph_type }
+
+ );
+}
+
class Results extends Component {
constructor(props) {
super(props);
@@ -31,15 +44,9 @@ class Results extends Component {
Searched for { this.props.searchTerm } search type: { this.props.searchType }
);
- const entries = this.props.searchResults.map((entry, idx) => {
- return (
- { entry.sai } - { entry.eng }
-
- { entry.syn_category }
-
- Type: { entry.morph_type }
-
);
- });
+ const entries = this.props.searchResults.map(
+ (entry, idx) =>
+ );
return [header].concat(entries);
}