Training course on React JS

Here's how we can do it: import React, { useState, useEffect } from 'react'; function MyComponent() { const [width, setWidth] = useState(window. innerWidth); useEffect(() => { const handleResize = ()

Mobile Development test abc topic test Networking edt 2 Data 01 course topic
11 Lessons 2h 11m Medium
0 Reviews
Objective

By default, the Window enables you to resize it by dragging its edges (resize handles). To control this behavior, use the resizable prop. You can also control the minimum allowed dimensions of the Window by using the minWidth and minHeight props.

  • p1
    35 min
Pre-requisite

We can effectively change image dimensions using the drawImage() method, passing width and height parameters as desired. It's as simple as: let canvas = document. createElement('canvas'); canvas.

Description

Controlling Image Dimensions: To change an image's width and height, specify the image maxWidth and image maxHeight parameters. If you need to ensure that the resized image does not fall below certain dimensions, you can also set the image minWidth and image minHeight.

Reviews
0.0
(0 Reviews)
5
0
4
0
3
0
2
0
0
Free
Program Info
  • 0h 20m Videos
  • 3 Articles
  • 2 Downloadable Resources
Course Validity
  • 3 Days