Y
Hacker News
new
|
ask
|
show
|
jobs
by
some1else
3506 days ago
Use composition. Extract the logic out of your custom element into another class (ie.: Progress). That can parent any compatible presentational custom element (i.e.: ProgressText, ProgressBar)