import './App.css'; import {Button} from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import './styles/roots.scss'; import data from './roots.json' function App() { const socialTypes = ["facebook", "instagram", "twitter", "github", "youtube", "linkedin", "pinterest"]; return (

{data.title}

{data.links.map((rootDetail, index)=>{ if(rootDetail.type == "facebook") { res = } else if (rootDetail.type === "basic") { res = } else { // throw "One of your roots has an unrecognized type. Check out the documentation for the supported types."; } return res; })}
); } export default App;