|
17 | 17 | | <code>reRender(Object | Function)</code> | Set the properties of a component instance. Can also take a function which will receive the current props as an argument. | |
18 | 18 | | `getProps()` | Get the properties of a component instance. | |
19 | 19 | | <code>setState(Object | Function)</code> | Set the state of a component instance. Can also take a function which will receive the current props as an argument. | |
20 | | -| `stylesheet()` | Returns a string of css to be lazily added to a `style` tag in the head. | |
21 | | -| `styles()` | Returns an object that represents inline-styles to be applied to the component. Styles are applied by adding a keys from the object to the `styles` attribute of an html tag in the render function, for example `styles="key1 key2"`. Each object's key-value pair are added to the element's style object. | |
22 | | -| `render()` | Returns HTML to be parsed or a dom node that will overwrite. There is usually no need to call this directly, prefer `componentInstance.reRender({ ... })`. | |
| 20 | +| `stylesheet()` | Should return a string of css to be lazily added to a `style` tag in the head. | |
| 21 | +| `styles()` | Should return an object that represents inline-styles to be applied to the component. Styles are applied by adding a keys from the object to the `styles` attribute of an html tag in the render function, for example `styles="key1 key2"`. Each object's key-value pair are added to the element's style object. | |
| 22 | +| `render()` | Should return HTML or nodes to be parsed or a dom node that will overwrite. There is usually no need to call this directly, prefer `componentInstance.reRender({ ... })`. | |
23 | 23 | | html\`...\` | Tidy up an HTML string (use as a [tagged template][2]). | |
24 | 24 |
|
25 | 25 | ## INSTANCE PROPERTIES |
26 | 26 |
|
27 | 27 | | Name | Description | |
28 | 28 | | :--- | :--- | |
29 | | -| <code>childElements</code> | An array of nodes, the original child elements of the component. | |
30 | | -| <code>childNodes</code> | An array of nodes, the original child nodes of the component. | |
| 29 | +| <code>childElements</code> | An array of nodes, the original child *elements* of the component. | |
| 30 | +| <code>childNodes</code> | An array of nodes, the original child *nodes* of the component. | |
| 31 | +| <code>props</code> | An object that contains the properties that were passed to the component. | |
| 32 | +| <code>state</code> | A plain-old JSON object that contains the state of the component. | |
31 | 33 |
|
32 | 34 | ## "LIFECYCLE" INSTANCE METHODS |
33 | 35 |
|
|
0 commit comments