We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b1767 commit 0491192Copy full SHA for 0491192
1 file changed
src/sections/Pricing/review-slider.js
@@ -1,9 +1,5 @@
1
2
import React, { useRef, useState, useLayoutEffect } from "react";
3
-// NOTE: useLayoutEffect is used intentionally here (instead of useEffect) so
4
-// that we can compute the correct `slidesToShow` value before the browser
5
-// paints the component. This avoids a visual flash where the slider briefly
6
-// renders with the desktop slide count and then corrects itself on mount.
7
import styled from "styled-components";
8
import Customers from "../../reusecore/Blockquote/Blockquote-image";
9
import Slider from "react-slick";
0 commit comments