react.rb icon indicating copy to clipboard operation
react.rb copied to clipboard

Selectable/Seperated Rendering engine

Open Thermatix opened this issue 8 years ago • 4 comments

This is a feature request.

I think making the rendering engine selectable can only be a good thing.

For mostly the following Reasons:

Sticking to react.js forces you to be constrained by it.

Sticking to react.js also adds an unnecessary abstraction layer that you don't have control over.

Server Side rendering would run in native ruby, so you would not need a JS engine for that and it would be faster.

You'd only have to define some common semantics that would allow a common interface so that you could use either clear water, react.js or any other as the rendering engine.

You could even build your own rendering engine and add any feature you want.

Thermatix avatar Apr 21 '16 18:04 Thermatix

@Thermatix - seems like a pretty tremendous undertaking. Wouldn't it be better off going the Clearwater direction if that's what you want?

wied03 avatar Apr 26 '16 15:04 wied03

Actually, that's exactly what I proposed but catmando said (in the gitter chat for react.rb).... actually I can't recall what was said exactly; but I think he said something that went along the lines of: that you should be able to chose and that react.rb's DSL should act more as an abstraction layer for clearwater,react.js or whatever else you want.

Thermatix avatar May 03 '16 23:05 Thermatix

Just my opinion, but it would be hard for me to see the value in trying to build that, especially for the core react.rb project. I've seen many case of abstraction layers that try to hide something really big like this and they usually fail.

wied03 avatar May 03 '16 23:05 wied03

This issue was moved to reactrb/reactrb#141

sollycatprint avatar Jun 13 '16 13:06 sollycatprint