Ways of use: <img>
This is the basic and more direct approach of how to use Devapix into your project. Let's take a look at an example inside a .html
file.
index.html
<html>
<body>
<img src="https://devapix.vercel.app/api?html5"/>
</body>
</html>
Double click to copy
Request
https://devapix.vercel.app/api?html5
Double click to copy
Response
src
is the only attribute needed of <img>
to receive the API request.
The tag <img>
also work in React projects since .jsx
or .tsx
extensions.