Perspective is everything.
discomfort ———> growth
problems ———> challenges
rejection ———> redirection
triggers ———> reveal wounds
darkness ———> reveals light
failures ———> lessons
#motivation
discomfort ———> growth
problems ———> challenges
rejection ———> redirection
triggers ———> reveal wounds
darkness ———> reveals light
failures ———> lessons
#motivation
🔥4👍2
Here’s how you can build image carousel using two CSS properties.
1. scroll-snap-type
This CSS property is used to control the behavior of scrolling alignment within a container.
In this case, it's set to
• x: Refers to the horizontal axis. This property is specific to horizontal scrolling.
• mandatory: Indicates that the scrolling will always snap to the nearest snap point.
2. scroll-snap-align: start;
This CSS property defines how an element should be aligned during a scroll operation. In this case, it ensures that each image starts at the beginning of the carousel.
1. scroll-snap-type
This CSS property is used to control the behavior of scrolling alignment within a container.
In this case, it's set to
x mandatory, which means:• x: Refers to the horizontal axis. This property is specific to horizontal scrolling.
• mandatory: Indicates that the scrolling will always snap to the nearest snap point.
2. scroll-snap-align: start;
This CSS property defines how an element should be aligned during a scroll operation. In this case, it ensures that each image starts at the beginning of the carousel.
👍2
60+ React.js Interview Questions
[ For both Beginners & Experienced ]
⇩
[ For both Beginners & Experienced ]
⇩
👍1
Level: Beginner to Medium
Topics:
➊ Introduction
➋ JSX
➌ Virtual DOM
➍ Components
➎ States and Props
➏ Data Binding
➐ Component Rendering
➑ Introduction to Hooks
Topics:
➊ Introduction
➋ JSX
➌ Virtual DOM
➍ Components
➎ States and Props
➏ Data Binding
➐ Component Rendering
➑ Introduction to Hooks
🔥1
➊ Introduction
➀ What is React?
➁ What are the latest features introduced recently?
➂ What are the core features of React?
➃ What are the advantages of using React?
➄ Where shouldn't we use React?
➅ What are different rendering techniques?
➆ Difference: CSR v/s SSR
➀ What is React?
➁ What are the latest features introduced recently?
➂ What are the core features of React?
➃ What are the advantages of using React?
➄ Where shouldn't we use React?
➅ What are different rendering techniques?
➆ Difference: CSR v/s SSR
🔥1
➇ What is SPA? How does it work?
➈ When may an SPA run slower?
➉ What is SSR?
➀➀ Does React support SSR?
➀➁ What is SSG?
➀➂ Key differences between SSR and SSG.
➀➃ What is RSC (React Server Components)?
➀➄ How does an RSC work?
➈ When may an SPA run slower?
➉ What is SSR?
➀➀ Does React support SSR?
➀➁ What is SSG?
➀➂ Key differences between SSR and SSG.
➀➃ What is RSC (React Server Components)?
➀➄ How does an RSC work?
🔥1
➋ JSX
➀ What is JSX?
➁ Can a JSX code directly run on a browser?
➂ What do we need to convert JSX code to plain-JS code?
➃ Is "import React from react" necessary? If yes, when?
➄ Write a sample JSX code and convert it to its equivalent JavaScript.
➀ What is JSX?
➁ Can a JSX code directly run on a browser?
➂ What do we need to convert JSX code to plain-JS code?
➃ Is "import React from react" necessary? If yes, when?
➄ Write a sample JSX code and convert it to its equivalent JavaScript.
🔥1
➌ Virtual DOM
➀ What is a Virtual DOM?
➁ Why does React use a Virtual DOM?
➂ Advantages of Virtual DOM over normal DOM?
➃ Explain how the Virtual DOM works.
➄ When and how are changes propagated to the real DOM?
➀ What is a Virtual DOM?
➁ Why does React use a Virtual DOM?
➂ Advantages of Virtual DOM over normal DOM?
➃ Explain how the Virtual DOM works.
➄ When and how are changes propagated to the real DOM?
🔥1
➍ Components
➀ What is a component?
➁ How many ways can a component be defined?
➂ How to define a class-based component?
➃ How to define a function-based component?
➄ What are the advantages and disadvantages of defining a component function-based vs. class-based?
➀ What is a component?
➁ How many ways can a component be defined?
➂ How to define a class-based component?
➃ How to define a function-based component?
➄ What are the advantages and disadvantages of defining a component function-based vs. class-based?
🔥1
➅ Explain the life cycle of a component.
➆ What is a life cycle method and what is its purpose?
➇ Give examples of some life cycle methods and their usage.
➆ What is a life cycle method and what is its purpose?
➇ Give examples of some life cycle methods and their usage.
🔥1