Skip to content

Making UI components #29

Answered by volfpeter
scotttrinh asked this question in Q&A
Jan 14, 2025 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hi,

Thanks for giving these projects a try! I find your feedback very interesting and useful. I'll start with my two takeaways:

  • Formatter should by default skip properties whose value is None. I already prototyped the implementation, I still need to add some tests. We should create an issue for it, the feature could be included in the next release.
  • It could be useful to provide a higher order component that can be used to easily add default properties to other components. Something like functools.partial. Although it's not trivial, because "_property", "property", and "property_" patterns must be treat together.

Back to your code and the original question. Since you don't use context in…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@volfpeter
Comment options

@volfpeter
Comment options

@scotttrinh
Comment options

@volfpeter
Comment options

@scotttrinh
Comment options

Answer selected by scotttrinh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants