root.js

Home   »   root.js

// src/components/root.js
import React from 'react';
import {split} from 'fusion-react';

const LoadingComponent = () => 
Loading...
; const ErrorComponent = () =>
Error loading component
; const Hello = split({ load: () => import('./components/hello'); LoadingComponent, ErrorComponent }); const root = (
  • Home
  • Hello
) export default root;

Leave a Reply

Your email address will not be published. Required fields are marked *