import React, { Component, Fragment } from 'react'; import ReactDOM from 'react-dom'; import { brandingMapping, brandingObject } from './branding'; import { certTemplate } from './cert'; const label = 'unicraft' class Dashboard extends Component { render() { const renderHeader = () => { const BrandHeader = brandingMapping[label]; return ; } const renderCert = () => { const cert = certTemplate(label) console.log(cert); return cert.certLog; } console.log(Object.keys(brandingObject)); return (

Header

{ renderHeader() }

Certificate

{ renderCert() }
) } } ReactDOM.render( , document.getElementById('root') );