1import React from 'react';
2import { get, map } from 'lodash';
4const ReactSVGComponents = {
10 xmlns={'http://www.w3.org/2000/svg'}
12 {map(get(p, 'children', []), (child, idx) =>
13 ReactSVGComponents[child.tag](child, idx)
20 <circle {...p.attr} key={key}>
21 {map(get(p, 'children', []), (child, idx) =>
22 ReactSVGComponents[child.tag](child, idx)
29 <rect {...p.attr} key={key}>
30 {map(get(p, 'children', []), (child, idx) =>
31 ReactSVGComponents[child.tag](child, idx)
38 <path {...p.attr} key={key}>
39 {map(get(p, 'children', []), (child, idx) =>
40 ReactSVGComponents[child.tag](child, idx)
47 <g {...p.attr} key={key}>
48 {map(get(p, 'children', []), (child, idx) =>
49 ReactSVGComponents[child.tag](child, idx)
54 polygon: (p, key) => {
56 <polygon {...p.attr} key={key}>
57 {map(get(p, 'children', []), (child, idx) =>
58 ReactSVGComponents[child.tag](child, idx)
65 <line {...p.attr} key={key}>
66 {map(get(p, 'children', []), (child, idx) =>
67 ReactSVGComponents[child.tag](child, idx)
72 polyline: (p, key) => {
74 <polyline {...p.attr} key={key}>
75 {map(get(p, 'children', []), (child, idx) =>
76 ReactSVGComponents[child.tag](child, idx)
83export default ReactSVGComponents;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list