使用fusion.js从服务器获取数据
import React from 'react';
import {prepared} from 'fusion-react-async';
import fetch from 'isomorphic-fetch';
async function Example() {
const name = await fetch('https://voltuswave.com');
return <div>Hello, {name}</div>;
}
export default prepared(async () => await fetch('/fecthData'))(Example);