It is very interesting project. However, I'd like to translate to a dictionary node than a class object.
How should I look into?
I mean:
<Hello name = "World" />
could translate to
{ 'type':Hello, 'props': { 'name': "World", } }
Why I need this is because it can be lighter than class object.
I can use it for VDOM diff directly.
or translate to a node object.
Node(type=Hello, props = {'name': "World"})
It is very interesting project. However, I'd like to translate to a dictionary node than a class object.
How should I look into?
I mean:
<Hello name = "World" />could translate to
{ 'type':Hello, 'props': { 'name': "World", } }Why I need this is because it can be lighter than class object.
I can use it for VDOM diff directly.
or translate to a node object.
Node(type=Hello, props = {'name': "World"})