Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
ŧåŀēņţłĕşš_ģųŷ oh sorry It's just that the first error i encountered in the code is missing Object.values() method. I see the problem now. When you find a match, for example, by inputting "Alice", you push the entire object to the results array and on the render method you attempt to render it. That's not how React works. React cannot render plain javascript objects like this. In your case you should create some other component to represent a single result which will display the "name", "profession" and "age" of a single result object. The render in the Search component should render a list of such "Result" components
18th Oct 2018, 6:29 AM
Burey
Burey - avatar