Skip to content

Commit c01d5b2

Browse files
author
Tane Morgan
authored
Merge pull request tanem#176 from tanem/handle-fallbacks
Fix README example
2 parents 85f33a7 + 1d2072a commit c01d5b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Other non-documented properties are applied to the wrapper element.
5353
<ReactSVG
5454
src="svg.svg"
5555
evalScripts="always"
56-
fallback={'p'}
56+
fallback={() => <span>Error!</span>}
5757
onInjected={(error, svg) => {
5858
if (error) {
5959
console.error(error)

0 commit comments

Comments
 (0)