In the process of using react, if writing events into JSX will cause confusion in the code, it is recommended to extract the logic into a separate method to ensure that the JSX structure is clear. But abstracting the logic into a separate method would poi