V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
LiuN1an

寻找好用的 react 瀑布流组件

  •  
  •   LiuN1an · Aug 17, 2023 · 2433 views
    This topic created in 985 days ago, the information mentioned may be changed or developed.

    为什么我在 react 生态里搜索不到好用的瀑布流组件,找到的也都是固定高度的

    6 replies    2023-08-29 00:54:13 +08:00
    linshuizhaoying
        1
    linshuizhaoying  
       Aug 17, 2023
    找 js 版本 然后自己转
    hoodjannn
        2
    hoodjannn  
       Aug 17, 2023
    这种前端小库就自己写一个吧,用不了多久。
    LiuN1an
        3
    LiuN1an  
    OP
       Aug 18, 2023
    @hoodjannn 功能确实是单一, 但想写好也会有些麻烦, 我只是感觉很奇怪, 为啥这么普遍的一个功能没找到一个社区贡献
    LiuN1an
        4
    LiuN1an  
    OP
       Aug 18, 2023
    @linshuizhaoying 有找到一些, 但版本都很老
    shervinchen
        5
    shervinchen  
       Aug 26, 2023
    https://github.com/paulcollett/react-masonry-css

    我目前找到的最轻量的库,纯 CSS 实现(如果有更复杂的需求,还是得用 JS
    LiuN1an
        6
    LiuN1an  
    OP
       Aug 29, 2023
    @shervinchen 感谢大佬, 读了一下,真的很轻
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5589 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.