-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support isFragment #4033
Comments
Neither the If you ran into a problem with a specific library, feel free to post a reproduction case. Happy to look into that. |
Sounds like a |
@marvinhagemeister @rschristian Thanks for such a quick reply. |
For example, I now have the option of raising a pr to |
That internalised |
I'm new to export function isFragment(element) {
if (!isValidElement(element)) return false;
return element.type === preact.Fragment;
} |
As far as I know, there are many projects that use preact to replace react, so it is inevitable that methods such as isFragment will be used in some three-party libraries, but this is not supported by preact. Excuse me, is there any workround? Or consider supporting it?
The text was updated successfully, but these errors were encountered: