From d2dbdf21a7704ae56e0e3808de0b21d5584a34a5 Mon Sep 17 00:00:00 2001 From: dgarcia Date: Tue, 10 Mar 2020 12:58:16 +0100 Subject: [PATCH] Change exported method from MCF_Renderer() to render() --- README.md | 2 +- src/components.js | 4 ++-- src/example.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2f09888..68f7ce4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/components.js b/src/components.js index 8dfd4b1..eaccbb9 100644 --- a/src/components.js +++ b/src/components.js @@ -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}; diff --git a/src/example.js b/src/example.js index 58ecb5e..958a364 100644 --- a/src/example.js +++ b/src/example.js @@ -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');