MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
711 stars 546 forks source link

chore: Revamp interactive UI example using JSX #2427

Closed FrederikBolding closed 1 month ago

FrederikBolding commented 1 month ago

Revamps the interactive UI example, rewriting most of the UI logic in JSX and removing the getState functionality.

This will let us more easily test different types of inputs once added as well, e.g. Dropdown.

This also uses the new context property and lets us remove the usage of manageState entirely from the Snap.