Skip to content
Update dynamic components authored by Michel Smola's avatar Michel Smola
......@@ -59,3 +59,12 @@ so let's analyse this example a bit:
+ generally initialize variables from values passed in through the props
+ `value` is a dynamic property. It has a getter and setter method and therefore defines how the element will dynamically change when you change its 'value'
+ `turnRed` is a class method.
We may now instantiate out field like:
```js
const integerField = DOMore.create(Field, {
className: 'integer-field',
type: 'int',
value: 7,
});
```
\ No newline at end of file