Replies: 1 comment 2 replies
-
Thanks for the feedback - I don't share the same perspective on the API as I prefer it over flutter/flet especially for things like components and making more complex UIs. We do put a lot of thought in our design - it may not match your opinion. I think we can look into the better IDE support in the future a few people have mentioned it |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I've been aware of Reflex for a while but only took a deep dive yesterday. My background is in Dart/Flutter and Python/Flet, with zero experience in React/JavaScript. What I particularly admire about Flutter and Flet's codebase:
TextAlign.left
).When I explored Reflex's source code, I felt disappointed. I acknowledge my expectations are my own responsibility, but I genuinely wish Reflex had the same API rigor and thoughtfulness as Flutter/Flet.
Issues I Noticed
Weak Component Typing
@immutable
classes or Pythondataclass
.Unhelpful IDE Support
For example, inspecting
rx.center
arguments doesn't show:alignment
options).How this could look:
Unconventional Naming
Components appear as variables (
rx.center
), though they're actually factory methods:While Python developers might find this normal, coming from Flutter it feels inconsistent.
What I'd Like to See in Reflex
Strictly Typed Props
Using
Pydantic
or validated annotations:Enums for Constrained Values
True Classes Over Factories
Instead of:
Prefer:
Better IDE Integration
Hints like:
color
must be a HEX string or named color (red, blue)".Why This Matters
Reflex bills itself as "React for Python", but currently lacks mature typing practices. This may improve with time—the library is young and evolving.
Question for the community:
What are your thoughts on Reflex's current typing approach? Are there plans to strengthen it?
I haven't properly explored Reflex yet. My experience is still very superficial, but these are the things I've noticed so far.
I really like the applications built with Reflex - they're truly impressive. What I'm suggesting is meant to improve the developer experience.
Beta Was this translation helpful? Give feedback.
All reactions