3 ms·
Have you seen yesterday's post about Cx? I'm curious what you would have to say about it. Cx adds declarative data-binding, controllers and router on top of Re
by mstijak 10y ago
Have you seen yesterday's post about Cx? I'm curious what you would have to say about it.
Cx adds declarative data-binding, controllers and router on top of React and includes composable widgets and charts. It looks for a sweet spot between development speed and freedom to do whatever you want. Here's a quick example
https://cx.codaxy.com/fiddle/?f=42vDn4I1 https://cx.codaxy.com/fiddle/?f=42vDn4I1.
Disclaimer: I'm the author of Cx.
- jasim 10y agoFirst impressions: looks like Angular's two-way data binding (using custom attributes in the template itself) added to React. This should make it possible to write complex views quite fast - without writing much code, and yet we don't lose out on the component-based composition of Javascript code offered by React. What I need time to get around to is the concept of controllers and how it works when we want to compose things together. For example, how to write a multi-select widget that exposes a clear API to the rest of the world (onChange), and encapsulates all other details within. Cx does deserve a deeper look, and I'll definitely give it a whirl some time. Also kudos for the extensive documentation you've so far written!
- mstijak 10y agoThanks. Here's an example of a complex lookup field in practice. https://github.com/codaxy/cx-starter-kit/blob/master/app/routes/admin/orders/single/index.js https://github.com/codaxy/cx-starter-kit/blob/master/app/rou... It's perfectly fine to add multiple bindings between lookup options and field's data. That works for multivalue fields too. If you have any other questions I'm happy to answer in this thread https://news.ycombinator.com/item?id=12495728 https://news.ycombinator.com/item?id=12495728