React SSR with Isomorphic-css-loader

Index.js: import App from './app'; import React from 'react'; import ReactDOM from 'react-dom'; import { renderToString } from "react-dom/server& ... ...

Some Notes about Docker + PHPUnit

This is kinda a confusing subject to learn for me, especially when I am not very familiar with docker yet, nor with PHPUnit. Here is my note as I go a ... ...

Run Docker with Nginx

Docker Useful Commands: docker run --name -d -p : docker start docker ps docker ps -a docker rm -d: weather run in the background or not. Note: usuall ... ...

PHP Monolog Basic

require __DIR__ . '/vendor/autoload.php'; use Monolog\Handler\StreamHandler; use Monolog\Logger; $logger = new Logger('main'); $logger->pushHandler(ne ... ...

一个赖人的方法用react-redux dispatch

用到的方法很简单,ES6 Object Destructuring. import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; //Import scss i ... ...

最简单的REACT程序加CSS & SASS

import React from 'react'; import ReactDOM from 'react-dom'; //External SASS & CSS import './scss/style.scss'; import './css/style.css'; //The sty ... ...