taraspolovyi / react-honeycomb

React Honeycomb is a library for displaying lists as hexagonal honeycombs in React applications.
10 stars 7 forks source link

Fixed JSX Errors #4

Closed zachgof64 closed 3 years ago

zachgof64 commented 3 years ago

Added curly braces around renderItem(item)

import { Honeycomb, Hexagon } from 'react-honeycomb';

<Honeycomb
  columns={5}
  size={SIZE_OF_HEXAGON_SIDE}
  items={MY_ITEMS}
  renderItem={(item) => (
    <Hexagon className='awesome-class-name'>
        {renderItem(item)}
    </Hexagon>
  )}
/>;
taraspolovyi commented 3 years ago

Thanks a lot for your contribution