render emoji in css code example
Example 1: css in js
JSS is an authoring tool for CSS which allows you to use JavaScript to describe styles in a declarative, conflict-free and reusable way. It can compile in the browser, server-side or at build time in Node.
JSS is framework agnostic. It consists of multiple packages: the core, plugins, framework integrations and others.
Example 2: render html in js.erb
$('#comments ul.comments').append("<%= j render(:partial => 'comments/foobar') %>");