Skip to content

Commit

Permalink
Adjust the release guide
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Oct 4, 2023
1 parent 64f370f commit a6bede3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docusaurus/docs/React/release-guides/new-reactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ And then you can pass these newly created options to [`Channel`](../components/c

## EmojiMart integration

If you're used to work with EmojiMart then integrating with new reaction system shouldn't be a big trouble as you can define how your components look and reach for context if you need to:
If you're used to work with [EmojiMart emojis](https://github.com/missive/emoji-mart#-emoji-component) then integrating with new reaction system shouldn't be a big trouble as you can define how your components look and reach for context if you need to:

```tsx
// arbitrary EmojiMartContext (does not come with the SDK)
Expand All @@ -92,6 +92,7 @@ import { useEmojiMartContext } from '../contexts';
const CustomLikeComponent = () => {
const { selectedSkinTones, selectedSet } = useEmojiMartContext();

// to use EmojiMart web components you'll need to go through initiation steps, see EmojiMart documentation
return <em-emoji id='+1' set={selectedSet} skin={selectedSkinTones['+1']} />;
};

Expand Down

0 comments on commit a6bede3

Please sign in to comment.