Abdullahiqbal2021 opened a new issue, #20544:
URL: https://github.com/apache/echarts/issues/20544

   ### What problem does this feature solve?
   
   ```
   import { Link } from "react-router-dom";
   
   const options = {
       tooltip: {
               trigger: "item",
               enterable: true,
               formatter: (params) => {
                   const { value, name } = params as { value: number; name: 
string };
                   return <Link to={'/'}> Navigate </Link>
               },
           },
   }
   ```
   
   I want to directly use the react component in tooltip but it don't work
   I also tried this
   `return renderToString(<Link to={"/"}> Navigate </Link>);`
   
   ### What does the proposed API look like?
   
   I want that tooltip can render any custom component that we pass


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to