Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to translate to dictionary/list node #50

Open
nanfang2000 opened this issue Jan 17, 2021 · 0 comments
Open

How to translate to dictionary/list node #50

nanfang2000 opened this issue Jan 17, 2021 · 0 comments

Comments

@nanfang2000
Copy link

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"})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant