Adds a new "component" parameter to the render() function which can be either a string or object.
When passing a string like 'foo' the reference will be set to window[foo].
When passing an object it will set its property 'ref' to the widgets reference.
Also made some code cleanup since there were no eslint-settings to be found.
Adds a new "component" parameter to the render() function which can be either a string or object.
When passing a string like 'foo' the reference will be set to window[foo]. When passing an object it will set its property 'ref' to the widgets reference.
Also made some code cleanup since there were no eslint-settings to be found.