Hello!
I’ve got a basic button that opens a to external webpage. Everything works but the button itself, I can’t seem to get the text to apply visibly.
Inspecting the button in browser, the field is empty
Any suggestions?
import React from 'react';
import ForgeReconciler, { Button } from '@forge/react';
import { router } from '@forge/bridge';
const App = () => {
const handleOpenPage = () => {
router.open('https://example.com');
};
return (
<Button text="Calendar" onClick={handleOpenPage} />
);
};
ForgeReconciler.render(
<React.StrictMode>
<App />
</React.StrictMode>
);