quick thought: can't the key (like h1, exercise, img, ...) be a constant in all Element classes?
Then we can create an Element interface which all element should implement, with a function getTag()
Should not be fixed in this pr but it could make it more standardized
quick thought: can't the key (like
h1
,exercise
,img
, ...) be a constant in allElement
classes? Then we can create anElement
interface which all element should implement, with a functiongetTag()
Should not be fixed in this pr but it could make it more standardized
Originally posted by @thibmeu in https://github.com/blockchainworkbench/workbench-ui/pull/55
affects
src/components/page/elements/index.js