This reminds me a bit of Firebase callable functions. In case of Firebase, you can only export functions, but not whole classes.
Basically on the backend side (Firebase function) you export the function:
exportconstdoSomething=functions.https.onCall((data,context)=>{// do somethingreturn{baz:data.foo};});
I like your way more because it's OOP instead of functional programming. Also, I really like how you use TypeScript decorators for exposing class properties and methods. I just think it would be better if Component was also a decorator like in Angular (Component) and NestJS (Controller) instead of a class you have to extend. This way it would be a lot more flexible.
I just think it would be better if Component was also a decorator like in Angular (Component) and NestJS (Controller) instead of a class you have to extend. This way it would be a lot more flexible.
It's feasible and I agree that it would bring more flexibility. I'll put more thought into it. Thanks, @hakimio
!
Also, I think it would be nice if the frontend library would be framework agnostic and would work with all major SPA frameworks/libraries: React, Angular and Vue.
Anyway, I really like your project and I think it has a lot of potential. Hope, it will get more recognition from the community and you'll have motivation to continue developing it.
Also, I think it would be nice if the frontend library would be framework agnostic and would work with all major SPA frameworks/libraries: React, Angular and Vue.
Layr is designed to be UI framework agnostic but for now, there is only a React integration.
Thanks for your links and your encouraging words.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This reminds me a bit of Firebase callable functions. In case of Firebase, you can only export functions, but not whole classes.
Basically on the backend side (Firebase function) you export the function:
and then you can call it on the fronted:
I like your way more because it's OOP instead of functional programming. Also, I really like how you use TypeScript decorators for exposing class properties and methods. I just think it would be better if
Component
was also a decorator like in Angular (Component
) and NestJS (Controller
) instead of a class you have to extend. This way it would be a lot more flexible.It's feasible and I agree that it would bring more flexibility. I'll put more thought into it. Thanks, @hakimio !
Some recommendations for inspiration:
Also, I think it would be nice if the frontend library would be framework agnostic and would work with all major SPA frameworks/libraries: React, Angular and Vue.
Anyway, I really like your project and I think it has a lot of potential. Hope, it will get more recognition from the community and you'll have motivation to continue developing it.
Layr is designed to be UI framework agnostic but for now, there is only a React integration.
Thanks for your links and your encouraging words.