Horje
Popup is not working Code Example
Popup is not working
import 'bootstrap/dist/css/bootstrap.css';
import React from 'react';
import './index.css';
import Logo from "../../public/img/Logo.png"
import * as ReactDOM from "react-dom";
import { Popup } from "@progress/kendo-react-popup";


const Header = () =>{

    const anchor = React.useRef(null);
    const [show, setShow] = React.useState(false);
    React.useEffect(() => {
        setShow(true);
    }, []);

    const onClick = () => {
        setShow(!show);
    };


    return(
        <nav class="navbar navbar-expand-lg navbar-light bg-light">

        <button className="k-button" onClick={onClick} ref={anchor}>
        {show ? "Hide" : "Show"}
      </button>

     
      <Popup anchor={anchor.current} show={show} popupClass={"popup-content"}>
        Popup content.
      </Popup>
	</nav>
)};
export default Header;




Javascript

Related
on click scroll to element Code Example on click scroll to element Code Example
JSDOM - serialize() // returns dom as string Code Example JSDOM - serialize() // returns dom as string Code Example
font awesome react share faShare Code Example font awesome react share faShare Code Example
deno debugger Code Example deno debugger Code Example
js get key value from url Code Example js get key value from url Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7