UNPKG

@j2inn/app-react

Version:

React implementation of the j2inn-app framework

14 lines (13 loc) 444 B
import { jsx as _jsx } from "react/jsx-runtime"; /* * Copyright (c) 2022, J2 Innovations. All Rights Reserved */ import React from 'react'; import { Loading } from './Loading'; const loading = _jsx(Loading, {}); /** * A reusable suspense component with a default fallback loader. */ export const Suspense = ({ children, fallback = loading }) => { return _jsx(React.Suspense, { fallback: fallback, children: children }); };