-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hello, awesome project! I believe this project and the node-gtk project could boost app development on Linux.
I am trying to recreate the gjs tutorial and I can't figure out how to do event handling.
For example I want to do handle a click event on a button:
import React, { Component } from 'react';
import { render, Button, Box } from '@react-gtk/binding';
class App extends Component {
onClicked() {
console.log("clicked");
}
render() {
return (
<Button label="Click Here" clicked={this.onClicked} />
);
}
}
render(<App />, 'Hello World');
The event name would be clicked but I don't know how to handle the event in my component.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels