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

Docs needed #21

Closed
4 of 6 tasks
kevinresol opened this issue Apr 18, 2018 · 2 comments
Closed
4 of 6 tasks

Docs needed #21

kevinresol opened this issue Apr 18, 2018 · 2 comments

Comments

@kevinresol
Copy link
Member

kevinresol commented Apr 18, 2018

I will try to consolidate some topics that I think requires documentation/explanations. Some may belong to tink_hxx or specific renderer, but I am not sure:

  • rendering-function vs full View class: performance, caching, allows state, etc
  • attribute-declared-as-children syntax: <Parent><attr1 props><Child {...props}/></attr1></Parent>
  • attribute name mangling: e.g. class -> className
  • typing function attributes: <div onclick={attr = value}/> <- this works somehow, but the haxe expr is not a function at all
  • observable vs plain value: e.g. function render() '<div attr={value}/>', what is the difference if value is Observable vs a plain value?
  • view caching: how it works?

Feel free to add to the list.

@gene-pavlovsky
Copy link

gene-pavlovsky commented Sep 13, 2018

If I may add, tink_hxx docs:

  • Interpolation ... "either by using JSX like syntax or by using Haxe interpolation syntax" - some reference and/or examples of what is "JSX like syntax"
  • Spread ... "HXX has the capacity to deal with spreads, e.g. <someTag {...properties} />" - after a conversation with @back2dos I see this is a huge topic, deserving more details and examples on the possibilities
  • If an @:attribute var children:Children is defined in a view, child nodes end up there. I couldn't find a mentiond of that in the doc

@back2dos
Copy link
Member

Most of this is documented now. The rest is pretty backend specific.

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

3 participants