main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
249 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | module.exports = function (renderer, element, props) {
|
---|
4 | var newProps = renderer.assign({}, element.props, props);
|
---|
5 |
|
---|
6 | if (element.ref) {
|
---|
7 | newProps.ref = element.ref;
|
---|
8 | }
|
---|
9 |
|
---|
10 | return renderer.h(element.type, newProps);
|
---|
11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.