Hi Michael,

It's relatively hard to explain but I try ;)

Executive summary.

TiddlyWiki contains a lot of javascript code, that can be used (included) 
to create a react application, *if you are a react developer*. ... BUT you 
can't use the TW templates anymore, since react needs its own (different) 
templates. ... So you basically need to rewrite the whole TW UI, in an 
totally incompatible way. ... So imo its possible, but it doesn't make much 
sense. 

------------ TLDR; --------------
Simplified details

react.js is a framework to build interactive apps. 

TiddlyWiki is a framework to build interactive apps, static sites, single 
file TiddlyWikis. 

TW is able to be used as a server side backend, using the same code as in 
the browser. ... 

react uses specialized templates, to make the UI interactive. 
eg: If you enter data into input fields, it activates javascript code, to 
dynamically render other parts of the visible UI. 
In normal cases, to get this dynamic behaviour, there is a lot of coding 
needed. react is a framework to make this coding easier. ... but there 
still is a lot of coding needed to create the UI. So you have to be a 
developer to change the UI!

With react you can define some rules in an html template. 
eg: If this input changes -> get some info from a database -> display the 
results in the right menu. ... 
This behaviour is shown in your video. 

To create this behaviour, react needs to scan the browser UI elements (DOM) 
and tell the framework, that an imput changed. Depending on the html 
template and the related code, it updates the rest of the visible DOM

TiddlyWiki uses a different mechanism. .. The TW core scans the internal 
tiddler store. The core knows, if changes to a tiddler cause an update to 
the visible UI. 
 - If the UI is _not_ affected by the tiddler change, nothing happens. 
 - If the visible UI is affected, the core calculates the new UI and 
displays it. 
 - TW doesn't use the DOM to get notified of changes. This makes it 
possible to trigger UI changes without any user interaction. 

TiddlyWiki has its own tamplating language. It's the tiddlywiki wiki text 
(widgets). TW wiki text makes it possible, to create interactive UI without 
any javascript code. ... So it is possible for non developers to create 
your own TW based UI. 

I'm not sure if this helps, or just creates more questions. ... As I said: 
It's hard to explain.

have fun!
mario





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to