Skip to content

moriyuu/reference-tooltip-react-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reference-tooltip-react-sample

Sample of reference-tooltip with React

Example

https://reference-tooltip-react-sample.netlify.com/

import React from "react";
import "reference-tooltip";

function Component() {
    return (
        <p>
            I love <referenced-word rwid="sushi" content="Very very delicious.">sushi</referenced-word>.
        </p>
    );
}

Try in local

yarn dev
# or
npm run dev