Giter Club home page Giter Club logo

Comments (7)

NathanielHill avatar NathanielHill commented on June 3, 2024

Personally, I'm interested in container.innerHTML, but I suppose you could also export the container element itself, or an array of it's child elements?

from react-jsdom.

lukechilds avatar lukechilds commented on June 3, 2024

I wrote this before it was possible to export multiple sibling components.

I would accept a PR that enables this.

It should return either an element or a node list, not the container or an HTML string.

from react-jsdom.

NathanielHill avatar NathanielHill commented on June 3, 2024

Ok, unfortunately at the moment I'm having bundling issues with jsdom (vercel/ncc#274) and I've had to use my own patched version of jsdom.

I will come back to this when my upstream issues are fixed and I can actually use this package.

Will submit a PR then 👍

from react-jsdom.

franciscop avatar franciscop commented on June 3, 2024

I can work on this as noted in #10 and this will almost for sure be a breaking change. I'll submit this with docs and tests, thanks!

from react-jsdom.

NathanielHill avatar NathanielHill commented on June 3, 2024

@franciscop Awesome, great work!
@lukechilds Okay, closing 👍

from react-jsdom.

franciscop avatar franciscop commented on June 3, 2024

Wait that doesn't solve this issue, but I'm creating a new PR solving this issue 👍

from react-jsdom.

franciscop avatar franciscop commented on June 3, 2024

Here it is: #11

from react-jsdom.

Related Issues (7)

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.