Данная пошаговая инструкция поможет освоить основы на простом примере
Для справки
Сервер поднимался на Debian 8
c характеристиками:
CPU - 1 ядро x 500 МГц
worker_processes 5; | |
error_log /var/log/nginx/error.log; | |
pid /var/log/nginx/nginx.pid; | |
worker_rlimit_nofile 8192; | |
events { | |
worker_connections 4096; | |
use epoll; |
import React from 'react'; | |
import { Paper, withStyles, Grid, TextField, Button, FormControlLabel, Checkbox } from '@material-ui/core'; | |
import { Face, Fingerprint } from '@material-ui/icons' | |
const styles = theme => ({ | |
margin: { | |
margin: theme.spacing.unit * 2, | |
}, | |
padding: { | |
padding: theme.spacing.unit | |
} |
A Pen by Matheus Chimelli on CodePen.
/** | |
* A simple forEach() implementation for Arrays, Objects and NodeLists | |
* @private | |
* @param {Array|Object|NodeList} collection Collection of items to iterate | |
* @param {Function} callback Callback function for each iteration | |
* @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating over (aka `this`) | |
*/ | |
var forEach = function (collection, callback, scope) { | |
if (Object.prototype.toString.call(collection) === '[object Object]') { | |
for (var prop in collection) { |
import React from 'react' | |
import axios, { post } from 'axios'; | |
class SimpleReactFileUpload extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state ={ | |
file:null | |
} |
.night | |
- for (i = 0; i < 20; i++) | |
.shooting_star |
const renameProp = ( | |
oldProp, | |
newProp, | |
{ [oldProp]: old, ...others } | |
) => ({ | |
[newProp]: old, | |
...others | |
}) |