Skip to main content
Version: 1.x.x

Opening a Link

Function(url: string) => void

Opens the given URL in a new browser window.

Example


class MyComponent extends React.Component {
handleClick = (e: MouseEvent<HTMLButtonElement>) => {
quip.apps.openLink("https://www.quip.com");
}

render() {
return <button onClick={this.handleClick}>
Open Link
</button>;
}
}

quip.apps.initialize({
initializationCallback: (root, params) => {
ReactDOM.render(<MyComponent />, root);
},
});