In React router, I have to and onClick attributes as shown below<li key={i}><Link to="/about" onClick={() => props.selectName(name)}>{name}</Link></li>state ...
確定! 回上一頁