Skip to content

Commit

Permalink
fix: preact import
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Aug 8, 2023
1 parent cf01ffd commit a08dc3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/preact/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { useEffect } from 'preact/hooks';

export const RENDER_SCOPE = 'slot';
export const SVG_RENDER_SCOPE = 'g';
export const REACT_ROOT = '__react_root';

export const Effect = ({ effect }: { effect: () => void }): null => {
useEffect(effect, []);
return null;
};

0 comments on commit a08dc3b

Please sign in to comment.