Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react image source showing object module

<img src={require('assets/logo.png').default}/> <!-- React -->
<!-- OR -->
<img src="require('assets/logo.png').default"/> <!-- Vue -->
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #image #source #showing #object #module
ADD COMMENT
Topic
Name
8+7 =