Skip to content

Render emojis in project descriptions#68

Merged
ivanseed merged 1 commit intoivanseed:masterfrom
c-w:master
Oct 12, 2017
Merged

Render emojis in project descriptions#68
ivanseed merged 1 commit intoivanseed:masterfrom
c-w:master

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Oct 12, 2017

This is an alternative to #67 (which was opened while I was implementing this PR). This approach uses the React component provided by react-emoji-render to render the emojis in the project descriptions.

Using a component over an inline function has the advantage that it's slightly more readable/declarative and also avoids re-renders of the component on every cycle since React can figure out that the props of the Emoji component haven't changed since the last render.

Here is an example of a project description being rendered with an emoji:

image

Resolves #63

@ivanseed ivanseed merged commit 660aabf into ivanseed:master Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants