bhauman / bhauman/devcards

How to render devcards into a HTML element other than #com-rigsomelight-devcards-main?

Open
#148 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Clojure
Stars
1.5k
Forks
106
PR merge metrics
No merged PRs in 30d

Description

I would like to render my devcards into a HTML element that is not `#com-rigsomelight-devcards-main` (but `#app-devcards`, to use it with [figwheel-extra-mains](https://figwheel.org/docs/extra_mains.html#default-endpoint)). How do I do that?

It would be nice if I could set `:devcards {:target-element :#app-devcards}` (instead of `:devcards true`) in the CLJS compiler options.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the :devcards compiler option selects #com-rigsomelight-devcards-main and how the Figwheel extra-mains integration supplies #app-devcards. Confirm the desired configuration shape, then verify that devcards render into the configured element without breaking the existing default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.