React changes the data through setState and passes parameters to the interface. The interface failed to transfer parameters.

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!

Mar.02,2021

your cycle hook will only be executed once, so the change will not have any effect

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9ee98-1a13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9ee98-1a13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?