MiguelCastillo / scenic

Scene graph
MIT License
4 stars 0 forks source link

Manage tab selection with hooks #19

Closed MiguelCastillo closed 2 years ago

MiguelCastillo commented 2 years ago

All the panels for displaying information about scene nodes use a tabbed panel UX. And they all have boilerplate for selecting the tab. We have a couple of way to clean this up:

  1. Create a react hook. This is my preferred options.
  2. Create a reusable tabbed component which encapsulated view selection state.