Code Monkey home page Code Monkey logo

remote-frames's Issues

feat: Add wrapperComponentProps prop to be passed to wrapperComponent in RemoteFramesProvider

Actual behaviour:
Currently <WrapperComponent> https://github.com/klarna/remote-frames/blob/master/src/RemoteFramesProvider.js#L80 doesn't support props.

Requested behaviour:
Add wrapperComponentProps alongside with existing wrapperComponent. Make sure to make changes to componentDidUpdate https://github.com/klarna/remote-frames/blob/master/src/RemoteFramesProvider.js#L50 to call renderGlobalTarget when wrapperComponentProps changes.

[Improvement] Explain difference to React Portals

Hi frontend team @klarna!

I stumbled upon this project and it striked me with the conceptual similarity to already existing (and now official) React's Portals: https://reactjs.org/docs/portals.html. Now I did skim through the readme but I miss a good summary of how this project is different/better to the original React's Portals. Can you explain that, even in the answer to this issue? Or maybe what was your initial motivation to create this project. Just curious (and perhaps not only me) about React, JS and frames/widgets just like your checkout widget.

Cheers!

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.