Thanks @jlfsjunior for posting your Dash D3 components - it’s really helpful.
To see even more great examples, be sure to check out the dash-bootstrap-components library. @tcbegley refactored all the components to use functions and hooks last year. If you look at the git history, you can see the before and after and it makes it really easy to see how to make the components both ways.
This example is for the dbc.Alert
component: