Sunday, June 5, 2016

Web Interactive Fiction: On Second Thought – React

Web Interactive Fiction: On Second Thought – React

http://ift.tt/1Zqm5Fa

As a consultant, I learn a lot about bleeding-edge technology, including the latest web frameworks like Angular 1/2React, and others. My original thought was to use Angular 2/TypeScript for the basis for FyreVM-Web, but I’ve changed my mind.

Angular 2 is great, but it really is meant for “enterprise” development, not one-page story games. On the other hand, React is perfect for one-page story games. It’s just a layout engine without all the controller, service, and dependency injection technology that would be overkill for most IF authors.

React is still a level-up from plain HTML development, but most templates would probably be implemented by someone that knows HTML/CSS anyway. I think this is a reasonable compromise. The one feature I absolutely want, that Angular 1/2 and React offer, is data-bound templates. This just allows FyreVM-Web to set data to a JavaScript object that’s connected to the HTML template. React is perfect for that type of work.

Add a Comment




Gamebook blogs

http://ift.tt/1Zqm5Fa
via Planet Interactive Fiction http://planet-if.com/

June 5, 2016 at 10:29PM

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.