Socket IO Study server.js var app = require("express")(); var http = require("http").Server(app); var io = require("socket.io")(http); app.get("/", (req, res) => { ... ...
A tiny bit of code example for Vue Here it is, nothing fancy… <html> <head> <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></scri ... ...
Counter 1.1 (新加了一条HP bar) Counter 1.1: – 新加了一条HP bar; – 使用了Inline Style for the component; import React from 'react'; import ReactDOM from 'react-dom'; import { con ... ...
React-Redux Counter以及Reducer, mapStateToProps 和 mapDispatchToProps例子 Source code Github location: https://github.com/howareyoucolin/React-Redux-Counter Reducer const initialState = { count: 10 }; function rootReducer(st ... ...