prevwong / reka.js

💎 State management system to build any no-code editor
https://reka.js.org/
MIT License
611 stars 42 forks source link

Adding prop merging #135

Closed prevwong closed 8 months ago

prevwong commented 9 months ago

Currently, it's kinda awkward when we want to merge a prop's value with another value. For example:

component Button(text) => (
  <button text={"Button ->" + text}
)

Perhaps, we could make this easier by introducing a merge directive:

component Button(text) => (
  <button text={"Button ->"} @merge:text={text}
)