react-frame-component
react-frame-component copied to clipboard
iframe unmount callback
I know that this component is really old but it is really correctly working There's just one missing feature: be able to provide a unmount callback to be able to remove few listeners in parent app.
Is it possible to add it ?
thanks
I know that this component is really old but it is really correctly working
Being old isn't such a bad thing 😄
What's your use case, do you have a codesandbox or similar I could look at?
Good PR opportunity here if you want to contribute
Can I take this?
All I need to do is add a new prop contentWillUnMount
and pass it to Content
and call it on componentWillUnmount of Content component right?
yes please! just make sure you add tests and documentation to cover the new stuff
Can you help through the steps to set up the project and run it?
Good prompt for me to add a contributing.md
file!
- Pull down the repo
- Run
npm install
- Run
npm run serve
- Open
http://localhost:8080
- Now any changes you make to the library or example files will rebuild and refresh the browser
- Tests are run by
npm t