Lexiconga/src/components/display/WordsList.jsx

31 lines
583 B
React
Raw Normal View History

import Inferno from 'inferno';
import Component from 'inferno-component';
import marked from 'marked';
import idManager from '../../managers/IDManager';
import {WordDisplay} from './WordDisplay';
export class WordsList extends Component {
constructor (props) {
super(props);
}
render () {
return (
<div className='box'>
2017-06-25 22:23:42 +02:00
{this.props.words
&& this.props.words.map(word => {
return (
<WordDisplay key={`word_${word.id}`}
word={word} />
);
})
2017-06-25 22:23:42 +02:00
}
</div>
);
}
}