To display the data, you must first prepare.
To do this, export the
preparedDetails function from the file:
This function must receive one
meanings is an array of objects that describe a word.
Each object consists of the strings
example and an array of strings
When receiving such an array, the
preparedDetails function should return an object with the following fields:
defs must be an array of
def field values of all
examples must be an array of
example field values of all
synonyms must union the
synonyms arrays of all
The values for
synonyms must be unique.
The details container in a
Word component should display an array of
This method must be called with the
meanings property of the
For each key, the
Details component should be rendered with the
keyDetail property equal to the current key.
options property must equal the value of this key in the object obtained from
word property must also be passed through.
Words container, specify the
data property for the
It must equal the filtered
Only those elements should remain whose
listKey property is equal to the
route.param of the container.
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.