- React / Next.js
- Other Frameworks
Get the Velt client
Import the
useVeltClient React hook.You can use this hook within your component to fetch the Velt client.React
Enable Rewriter
Rewriter is not enabled by default.Within the useEffect hook, call client.getRewriterElement() and then enableRewriter() on the returned object to enable Rewriter.Now when a user highlights text on your website, the Rewriter tool will pop up.React

