This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-14
Channels
- # announcements (1)
- # asami (3)
- # aws (1)
- # babashka (22)
- # beginners (39)
- # calva (21)
- # clj-kondo (10)
- # cljdoc (22)
- # cljs-dev (17)
- # clojure (93)
- # clojure-australia (3)
- # clojure-europe (39)
- # clojure-italy (3)
- # clojure-losangeles (17)
- # clojure-nl (14)
- # clojure-russia (2)
- # clojure-uk (5)
- # clojurescript (35)
- # community-development (7)
- # conjure (2)
- # cursive (13)
- # data-science (1)
- # datomic (25)
- # emacs (5)
- # events (4)
- # figwheel-main (2)
- # fulcro (12)
- # graphql (7)
- # gratitude (2)
- # inf-clojure (6)
- # leiningen (6)
- # lsp (49)
- # malli (13)
- # membrane (30)
- # minecraft (1)
- # pathom (3)
- # pedestal (26)
- # polylith (13)
- # portal (2)
- # quil (3)
- # random (1)
- # re-frame (13)
- # reagent (43)
- # reitit (6)
- # releases (1)
- # reveal (2)
- # ring (3)
- # shadow-cljs (30)
- # specter (5)
- # sql (8)
- # tools-build (1)
- # tools-deps (13)
- # videos (1)
Is there a template library targeting ClojureScript similar to https://github.com/yogthos/Selmer?
You can probably also use an existing JS one, there's plenty of choice in the JS ecosystem for this
Added an example here: https://github.com/borkdude/nbb/blob/main/examples/handlebars/example.cljs

I encounter an error when trying to use this javascript library
TypeError: module$node_modules$react_easy_emoji$index.default is not a function
var replaceEmoji = require('./lib/replaceEmoji'),
makeTwemojiRenderer = require('./lib/makeTwemojiRenderer')
module.exports = function reactEasyEmoji (element, optionsOrFn) {
var render = (typeof optionsOrFn === 'function') ? optionsOrFn : makeTwemojiRenderer(optionsOrFn)
return replaceEmoji(element, render)
}
i looked into node_modules
to see how it was exported. and it seems like it is a default export
The table that you saw in shadow-cljs documentation is but a small part of the section on imports. The section itself has more pertinent information.
Just in case - that logging statement simply returns nil
. It probably prints out the function itself somewhere else.
> The table that you saw in shadow-cljs documentation is but a small part of the section on imports. The section itself has more pertinent information. @U2FRKM4TW What section are you referring to?
No, this one: https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages
I always start with [react-easy-emoji]
and then (react-easy-emoji/reactEasyEmoji "hey")
Does that work when you need quotes around an npm library? @U3A7Z18JZ
@U024A5W9WBG I didn’t try that usually works without quotes