Giter Site home page Giter Site logo

react-components's Introduction

react-components's People

Contributors

coleturner avatar jnao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-components's Issues

Cannot read property 'displayName' of undefined

i am getting undefined error on itemComponent.
the code from view.jsx

`const componentName = itemComponent.type.displayName || itemComponent.type.name;`

if you can explain MyMasonryItem class it would be really helpful right now

How to use Masonry

Good Morning
I read your article "Masonry in React: A Performance Hell" and I'm trying to use the components but I'm not getting it because it seems like some dependencies are missing. Do you have any examples using Masonry to help me?

Edson Martins
Brasil

Masonry columnGap filtering

Hi! Thanks for the write up and great component!

I'm in the process of converting this into TypeScript for a project where I'll be using it. Perhaps I don't quite understand the code, but it seems there's a possible bug on the following line and the line below it:

columnGaps[item.column + index] = columnGaps[item.column + index].filter(gap => {

As I understand, columnGap is of type number[][], so for example [[0, 1], [2, 4]]. However in the above line the filter method is applied to the inner array here columnGaps[item.column + index].filter(...) and so it is traversing the number values of columnGap at a specific index. Therefore the array destructuring on the next line is invalid: const [gapTop, gapHeight] = gap;, since gap here is of type number, not Array.

Use masonry in my project

Hello, first thank for great article and example code of masonry.
I need exactly component like this in my project. It is possible to use it from this example code which you have in repository?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.