A
A
ArturArturov2016-09-02 12:29:22
JavaScript
ArturArturov, 2016-09-02 12:29:22

How to load img in html?

What is the best way to load pictures in the img tag, ideally so as not to prescribe require-ry, but so that when parsing html they are automatically pulled up?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2016-07-03
@dennikolas

Angular or React.
jQuery - like a snowball, the complexity of your code will grow like an avalanche.

Q
qtuz, 2016-10-31
@qtuz

Use html-loader . It converts tags <img>to require('...').

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question