Multithread-it
A components oriented virtual dom in a worker rendering solution
Multithread-it help you writing web components wich do not block UI. This component will be rendered in a web-worker.
Components are written with virtual-dom and JSX.
Events are propagated from the UI thread to the application worker using an abstraction over Redux.
Example
Your component is the composition of two elements.
A Component
working in the application WebWorker
import MultithreadItComponent from 'multithread-it'; _label; { this; } { return <div> this_label <button ="EVENT_CLICK">-</button> </div> ; }
An EventsHandlers
listening to component events in the UI-thread
import MultithreadItEventsHandler from 'multithread-it'; { ; this; } { const target = etarget; if target'data-click' === 'EVENT_CLICK' e; this_worker; }
Then, in the application WebWorker a Redux reducer will process events.
{ }
For more informations about how Multithread-it should be used. Have a look to examples: