Added Emoji Support
This commit is contained in:
parent
f1915876ba
commit
3d61b94932
5 changed files with 13 additions and 8 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import * as React from "react";
|
||||
import { Emoji } from 'react-emoji-render';
|
||||
import * as React from "react";
|
||||
|
||||
function TodoItem(props: any) {
|
||||
return (
|
||||
<div className="todo-item" id={props.id}>
|
||||
<input type="checkbox" className="checkbox" id={props.id} onChange={props.onChange} checked={props.completed}/>
|
||||
<p>{props.todo_text}</p>
|
||||
<Emoji text = {props.todo_text}></Emoji>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue