in the project, there is a page with many keywords above and a list below. To click on the keywords above, the following list renders different data.
my idea is to set custom attributes to keywords. When you click on keywords, assign custom attribute values to variables through setState, pass parameters to the interface, get different parameter values and render different results. However, there is no effect
here is the code
The 65 lines in the
code are printed by clicking on the custom attribute value of the previous keyword
excuse me, what"s going on, and how can I successfully render different data by passing parameters?
question 2, add a timer on line 23 of the code to make the interface parameters pass successfully. Without a timer, the parameters are empty. I feel that timer is not a good method, there is no better way
Thank you very much!