I wanted to write a custom renderer for react. I want to use it one the web so it doesn't make sense to rewrite the whole thing since react-dom already exists.
Is it possible to write a custom renderer by just extending react-dom and only overwriting parts which make sense for my custom renderer?
E.g. i want to attach a key to every html element (div, p, span) which is rendered by react-dom.
I know how to write a custom renderer. What i don't know is if someone has tried extending the react-dom so that i don't have to copy paste allmost all react-dom code in my custom renderer. or call react-dom methods all over the place in my custom renderer. I hope the question is clear.
Please ask questions if something is not clear. I will try to clarify as much as possible