Change exported method from MCF_Renderer() to render()

This commit is contained in:
dgarcia 2020-03-10 12:58:16 +01:00
parent 2917dc0675
commit d2dbdf21a7
3 changed files with 5 additions and 5 deletions

View file

@ -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
the information needed.
The method is **MCF_Renderer**
The method is **render**
## Installation

View file

@ -1068,11 +1068,11 @@ const MCF_Dialog = withStyles(styles)(MCF_Dialog_NoStyled);
const MCF_DialogDialog = withStyles(styles)(MCF_DialogDialog_NoStyled);
const MCF_SelectionControl = withStyles(styles)(MCF_SelectionControl_NoStyled);
function MCF_renderer(schemeToRender, referenceSelector) {
function MCF_render(schemeToRender, referenceSelector) {
ReactDOM.render(
MCF_ElementFactory.createElement(schemeToRender),
document.querySelectorAll(referenceSelector)[0]
);
}
export {MCF_renderer as renderer};
export {MCF_render as render};

View file

@ -1,4 +1,4 @@
import {renderer} from './components';
import {render} from './components';
const scheme = {
type: 'card',
@ -23,4 +23,4 @@ const scheme = {
},
};
renderer(scheme, '#app');
render(scheme, '#app');