import './App.css'; import {Button} from 'react-bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import { IconContext } from 'react-icons/lib'; import { BsFacebook, BsInstagram, BsTwitter, BsGithub, BsYoutube, BsLinkedin, BsPinterest, BsReddit } from 'react-icons/bs'; import {GrTumblr} from 'react-icons/gr'; 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 = } return res; })}
); } export default App;