A package designed to save time in connecting your CMS app layouts to your arrangements of react components.
npm -i --save layouter-tools
import { Provider, Body } from 'layouter-tools';
function App() {
const layouterToolsOptions = {
PUBLIC_API_KEY: 'bjwi19ta',
sectionMap: [
{
section: 'landingScreenSection',
component: () => {
return <div>This is the Landing section</div>;
},
},
{
section: 'funnelItem01Section',
component: () => {
return <div>This is the Funnel section</div>;
},
},
{
section: 'shopDisplaySection',
component: () => {
return <div>This is the shop section</div>;
},
},
],
};
}
export default App;
function App() {
return (
<div className='App'>
<Provider options={layouterToolsOptions}>
<Body />
</Provider>
</div>
);
}
export default App;
//App.js of Create React app
import logo from './logo.svg';
import './App.css';
import { Provider, Body } from 'layouter-tools';
function App() {
const layouterToolsOptions = {
PUBLIC_API_KEY: '******',
sectionMap: [
{
section: 'landingScreenSection',
component: () => {
return <div>This is the Landing section</div>;
},
},
{
section: 'funnelItem01Section',
component: () => {
return <div>This is the Funnel section</div>;
},
},
{
section: 'shopDisplaySection',
component: () => {
return <div>This is the shop section</div>;
},
},
};
return (
<div className='App'>
<Provider options={layouterToolsOptions}>
<Body />
</Provider>
</div>
);
}
export default App;