You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download the example [or clone the repo](https://github.com/zeit/next.js):
7
+
8
+
```bash
9
+
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/svg-components
10
+
cd svg-components
11
+
```
12
+
13
+
Install it and run:
14
+
15
+
```bash
16
+
npm install
17
+
npm run dev
18
+
```
19
+
20
+
Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
21
+
22
+
```bash
23
+
now
24
+
```
25
+
26
+
## The idea behind the example
27
+
28
+
This example uses a custom `.babelrc` to add support for importing `.svg` files and rendering them as React components. [babel-plugin-inline-react-svg](https://www.npmjs.com/package/babel-plugin-inline-react-svg) is used to handle transpiling the SVGs.
0 commit comments