Skip to content

Commit

Permalink
fix: code suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Aug 2, 2024
1 parent 89ce4d8 commit 43fe3ba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/javascript/app/pages/portal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import { useEffect, useRef } from 'react';
import ReactDOM from 'react-dom';

const Portal = ({ children }) => {
const elRef = useRef(null);

if (!elRef.current) {
elRef.current = document.createElement('div');
}
const elRef = useRef(document.createElement('div'));

useEffect(() => {
const el = elRef.current;
Expand Down

0 comments on commit 43fe3ba

Please sign in to comment.