question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor Modal component to use only React hooks

See original GitHub issue

Modal component is one of the last that uses React Class component. This complicates other improvements we want to make to the Modal component, as general API refactor, animations etc. and therefore the best would be to refactor it to use only the React hooks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

3reactions
veporcommented, Oct 19, 2020

Thanks @zurda anyway! Looking forward to maybe different contributions you might make 🙂

1reaction
veporcommented, Oct 16, 2020

Hello @zurda, any update here? 🙂 If you won’t have time to create PR for this issue, please let me know. 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build a complete Modal Component with React Hooks
A Modal component from scratch. Before starting, here are the elements we will use during this tutorial: React Hooks; Portals from ReactDOM ...
Read more >
How to refactor React components to use Hooks
Refactoring your existing application or components to use React Hooks comes with its own unique set of challenges. In this article, we'll ...
Read more >
Easy React Modals with Hooks and Portals - We code the web
We used hooks and render props to create a generic, reuseable ToggleContent component, that you can use for any modal-like use case. We...
Read more >
How to Use Modal Components in React with Custom Hooks
We're going to start by creating a custom React Hook to power our modal component. If you haven't already explored React Hooks, check...
Read more >
Create a custom modal in React with context, portals, and hooks
This is only really useful if you need to trigger the modal from within <App/> , but what if you wanted the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found