Change exported method from MCF_Renderer() to render()
This commit is contained in:
parent
2917dc0675
commit
d2dbdf21a7
3 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
||||||
This library exports an unique method to render components using *React* and *Material-UI* through a javascript object where is placed all
|
This library exports an unique method to render components using *React* and *Material-UI* through a javascript object where is placed all
|
||||||
the information needed.
|
the information needed.
|
||||||
|
|
||||||
The method is **MCF_Renderer**
|
The method is **render**
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
|
@ -1068,11 +1068,11 @@ const MCF_Dialog = withStyles(styles)(MCF_Dialog_NoStyled);
|
||||||
const MCF_DialogDialog = withStyles(styles)(MCF_DialogDialog_NoStyled);
|
const MCF_DialogDialog = withStyles(styles)(MCF_DialogDialog_NoStyled);
|
||||||
const MCF_SelectionControl = withStyles(styles)(MCF_SelectionControl_NoStyled);
|
const MCF_SelectionControl = withStyles(styles)(MCF_SelectionControl_NoStyled);
|
||||||
|
|
||||||
function MCF_renderer(schemeToRender, referenceSelector) {
|
function MCF_render(schemeToRender, referenceSelector) {
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
MCF_ElementFactory.createElement(schemeToRender),
|
MCF_ElementFactory.createElement(schemeToRender),
|
||||||
document.querySelectorAll(referenceSelector)[0]
|
document.querySelectorAll(referenceSelector)[0]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export {MCF_renderer as renderer};
|
export {MCF_render as render};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {renderer} from './components';
|
import {render} from './components';
|
||||||
|
|
||||||
const scheme = {
|
const scheme = {
|
||||||
type: 'card',
|
type: 'card',
|
||||||
|
@ -23,4 +23,4 @@ const scheme = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
renderer(scheme, '#app');
|
render(scheme, '#app');
|
||||||
|
|
Loading…
Reference in a new issue