mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 08:58:15 +08:00
Add SVG support dependency note (#6783)
This commit is contained in:
committed by
Ian Sutherland
parent
b676bf3d4c
commit
e59e0920f3
@@ -44,7 +44,7 @@ An alternative way of handling static assets is described in the next section.
|
||||
|
||||
## Adding SVGs
|
||||
|
||||
> Note: this feature is available with `react-scripts@2.0.0` and higher.
|
||||
> Note: this feature is available with `react-scripts@2.0.0` and higher, and `react@16.0.0` and higher.
|
||||
|
||||
One way to add SVG files was described in the section above. You can also import SVGs directly as React components. You can use either of the two approaches. In your code it would look like this:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user