import React from 'react';
const Popup = () => {
const handleButtonClick = () => {
// Open a new window or tab with the desired URL
window.open('https://example.com', '_blank');
};
return (
<div>
<h1>Popup Page</h1>
<button onClick={handleButtonClick}>Change Display Page</button>
</div>
);
};
export default Popup;
import React from 'react';
const Popup = () => {
const handleButtonClick = () => {
// Open a new window or tab with the desired URL
window.open('https://example.com', '_blank');
};
return (
<div>
<h1>Popup Page</h1>
<button onClick={handleButtonClick}>Change Display Page</button>
</div>
);
};
export default Popup;