Created
May 3, 2018 15:05
-
-
Save sephi-dev/308abec722d1a28ce0a525669ef69231 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { render } from "react-dom"; | |
import Svg from "./Svg"; | |
const styles = { | |
fontFamily: "sans-serif", | |
textAlign: "center", | |
fontSize: "16px" | |
}; | |
const svgStyles = { | |
display: "flex", | |
width: "300px", | |
justifyContent: "space-between", | |
margin: "0 auto", | |
}; | |
const App = () => ( | |
<div style={styles}> | |
<h2>Sprite SVG using social icons</h2> | |
<div style={svgStyles}> | |
<Svg id="facebook" /> | |
<Svg id="twitter" /> | |
<Svg id="linkedin" /> | |
<Svg id="instagram" /> | |
<Svg id="dribbble" /> | |
</div> | |
</div> | |
); | |
render(<App />, document.getElementById("root")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment