@@ -15,13 +15,12 @@ Since it's likely a lot to take in at once, we'll break it down piece by piece:
1515 :linenos:
1616
1717The ``idom.component `` decorator creates a :ref: `Component <Stateful Components >` constructor
18- whose render function is defined by the `asynchronous function `_ below it. To create
19- a Component instance we call ``Slideshow() `` with the same arguments as its render
20- function. The render function of a Component returns a data structure that depicts a
21- user interface, or in more technical terms a Document Object Model (DOM). We call this
22- structural representation of the DOM a `Virtual DOM `__ (VDOM) - a term familiar to those
23- who work with `ReactJS `_. In the case of ``Slideshow `` it will return a VDOM
24- representing an image which, when clicked, will change.
18+ whose which is "rendered" by the function below it. To create a Component instance we call
19+ ``Slideshow() `` with the same arguments as its render function. The render function of a
20+ Component returns a data structure that depicts a user interface, or in more technical terms
21+ a Document Object Model (DOM). We call this structural representation of the DOM a
22+ `Virtual DOM `__ (VDOM) - a term familiar to those who work with `ReactJS `_. In the case of
23+ ``Slideshow `` it will return a VDOM representing an image which, when clicked, will change.
2524
2625__ https://reactjs.org/docs/faq-internals.html#what-is-the-virtual-dom
2726
@@ -92,6 +91,5 @@ websocket. To display the layout we can navigate to http://localhost:8765/client
9291
9392 .. _VDOM event specification : https://github.com/nteract/vdom/blob/master/docs/event-spec.md
9493.. _VDOM mimetype specification : https://github.com/nteract/vdom/blob/master/docs/mimetype-spec.md
95- .. _asynchronous function : https://realpython.com/async-io-python/
9694.. _ReactJS : https://reactjs.org/docs/faq-internals.html
9795.. _React Hooks : https://reactjs.org/docs/hooks-overview.html
0 commit comments