Improve performance when rendering many emoji
This commit is contained in:
parent
6f242eca57
commit
7f50fcdb54
3 changed files with 32 additions and 17 deletions
|
@ -96,3 +96,19 @@ story.add('Custom Text Render', () => {
|
|||
|
||||
return <Emojify {...props} />;
|
||||
});
|
||||
|
||||
story.add('Tens of thousands of emoji', () => {
|
||||
const props = createProps({
|
||||
text: '💅'.repeat(40000),
|
||||
});
|
||||
|
||||
return <Emojify {...props} />;
|
||||
});
|
||||
|
||||
story.add('Tens of thousands of emoji, interspersed with text', () => {
|
||||
const props = createProps({
|
||||
text: '💅 hi '.repeat(40000),
|
||||
});
|
||||
|
||||
return <Emojify {...props} />;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue