Created
December 15, 2015 06:25
-
-
Save somebody32/afbfd9ebdfff8edfe37b to your computer and use it in GitHub Desktop.
Generating SVG with React
This file contains hidden or 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'; | |
| export default class App extends React.Component { | |
| render() { | |
| return ( | |
| <svg> | |
| <circle cx={50} cy={50} r={10} fill="red" /> | |
| </svg> | |
| ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment