GithubHelp home page GithubHelp logo

reagent devcard about devcards HOT 7 CLOSED

bhauman avatar bhauman commented on August 22, 2024
reagent devcard

from devcards.

Comments (7)

jdmarble avatar jdmarble commented on August 22, 2024

See #12 for an idea on how to get started. I've put the card from that pull request directly in my source. Not very clean, but it gets the job done.

from devcards.

bhauman avatar bhauman commented on August 22, 2024

Reagent now works with devcards.

from devcards.

whodidthis avatar whodidthis commented on August 22, 2024

Not sure if possible, but would be interested if someone has an idea on how to use with re-frame

from devcards.

bhauman avatar bhauman commented on August 22, 2024

@whodidthis it should work for the individual reagent components right?

from devcards.

whodidthis avatar whodidthis commented on August 22, 2024

They work great, re-frame just has this predefined app-db atom that might make devcards impossible.

Out of interest, is there anything interesting to the atom you can feed to defcard when it comes to reagent? Is there any difference between

(defonce my-atom (reagent.core/atom {}))

(defcard my-card
  (dc/reagent [my-component my-atom]))

and

(defcard my-card
  (dc/reagent my-component)
  my-atom)

Or is it just as a backup if people want to use om-cards and reagent-cards in a similar way.

from devcards.

bhauman avatar bhauman commented on August 22, 2024

You get the history and data inspection with the second method.

from devcards.

whodidthis avatar whodidthis commented on August 22, 2024

Cool, didn't realize

from devcards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.