-
Notifications
You must be signed in to change notification settings - Fork 56
Possible to use with React? #31
Comments
You can use it with react make a pageable instance with useRef() and store pageable object in useEffect() and the rest is same. |
const game = () => { const loadPageable = async () => {
}; useEffect(() => { return ( <div data-anchor="page-1" id="page-1" className="pg-page" style={{ backgroundColor: "peachpuff" }} > <div data-anchor="page-2" className="pg-page" style={{ backgroundColor: "cornflowerblue" }} > <div data-anchor="page-3" className="pg-page" style={{ backgroundColor: "bisque" }} > <div data-anchor="page-4" className="pg-page" style={{ backgroundColor: "mediumaquamarine" }} >
); export default game; |
Hello do you know if it's possible to use this within a react app and if so how? I have tried integrating it in a few different ways but it does not seem to work.
The text was updated successfully, but these errors were encountered: