Рет қаралды 3,136
Use the Selection API to get selected text in React and show a social media sharing tooltip.
We'll walk through how to use the Selection API to listen for selected text, how to build out a dynamically placed tooltip based on selected text location using Tailwind, and how to share the selected text on click to Twitter.
🧰 Resources
Tutorial: spacejelly.dev...
Code: github.com/col...
Demo: my-highlight-s...
📺 KZbin: kzbin.info...
🐦 Twitter: / colbyfayock
📹 Twitch: / colbyfayock
✉️ Newsletter: www.colbyfayoc...
🎥 What I Use: www.colbyfayoc...
#colbyfayock #reactjs #tailwindcss #webdevelopment