kimjuny / koa-react-universal Goto Github PK
View Code? Open in Web Editor NEWlightweight React-Koa2 universal boilerplate, only what is essential
Home Page: https://kimjuny.github.io/koa-react-universal/
License: MIT License
lightweight React-Koa2 universal boilerplate, only what is essential
Home Page: https://kimjuny.github.io/koa-react-universal/
License: MIT License
new webpack.optimize.CommonsChunkPlugin({
names: ['bootstrap'], // needed to put webpack bootstrap code before chunks.
filename: '[name].[chunkhash].js',
minChunks: Infinity
}),
why use bootstrap?
抱歉,因为是刚接触同构和服务端渲染,所以没理解是只针对于首屏
update React and React-dom to V16.8.6 Hooks cannot work
"react": "^16.8.6",
"react-dom": "^16.8.6",
import React, { useState } from 'react';
export default function Example() {
// Declare a new state variable, which we'll call "count"
const [count, setCount] = useState(0);
return (
You clicked {count} times
执行 npm run dev 后启动的服务器是如何开的?我查看了所有代码没有发现有引入 'http' node模块啊。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.