import './App.css'; import {Button, ButtonGroup} from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import { BsFacebook, BsInstagram, BsTwitter, BsGithub, BsYoutube, BsLinkedin, BsPinterest, BsReddit } from 'react-icons/bs'; import Tumblr from './icons/Tumblr'; import './styles/roots.scss'; import data from './roots.json' function App() { var res; return (

{data.title}

{data.links.map((rootDetail, index)=>{ if(rootDetail.type === "facebook") { res = } else if(rootDetail.type === "instagram") { res = } else if (rootDetail.type === "twitter") { res = } else if (rootDetail.type === "github") { res = } else if (rootDetail.type === "youtube") { res = } else if (rootDetail.type === "linkedin") { res = } else if (rootDetail.type === "pinterest") { res = } else if (rootDetail.type === "tumblr") { res = } else if (rootDetail.type === "reddit") { 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;