Badoo Tech Blog: https://tech.badoo.com/ru/
Double VS single quotes: https://habr.com/ru/company/alfa/blog/447416/
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", | |
"plugin:promise/recommended", | |
"plugin:sonarjs/recommended", |
Badoo Tech Blog: https://tech.badoo.com/ru/
Double VS single quotes: https://habr.com/ru/company/alfa/blog/447416/
import React from "react"; | |
import { render } from "react-dom"; | |
import PropTypes from "prop-types"; | |
// Using PropTypes.InferProps | |
type InferPropTypes< | |
PropTypes, | |
DefaultProps = {}, | |
Props = PropTypes.InferProps<PropTypes> |
// EmailInput wraps an HTML `input` and adds some app-specific styling. | |
const EmailInput = React.forwardRef((props, ref) => ( | |
<input ref={ref} {...props} type="email" className="AppEmailInput" /> | |
)); | |
class App extends Component { | |
emailRef = React.createRef(); | |
render() { | |
return ( |
import React, { PropTypes } from 'react' | |
import MatchProvider from 'react-router/MatchProvider' | |
import matchPattern from 'react-router/matchPattern' | |
import { LocationSubscriber } from 'react-router/Broadcasts' | |
class RegisterMatch extends React.Component<void, RegisterMatchProps, void> { | |
static contextTypes = { | |
match: PropTypes.object, | |
serverRouter: PropTypes.object | |
} |
|
Этот текст о том, с чего начать прежде чем писать в https://telegram.me/prophp7
May 12, 2016
[8:23 PM] jrajav:: Heya. I'm wondering what the function of components really are. Just don't fully understand - why not just pass in the state with something like store.subscribe( () => render( , document.getElementById('root') ) ) ?
[8:24 PM] jrajav:: Passing in dispatch functions as well
[8:24 PM] jrajav:: Then, split apart the state as appropriate further down for each subcomponent
[8:25 PM] jrajav:: If all of the components are pure, stateless functional components this approach should still be just as performant, right?
/** | |
* Polyfill of .addEventListener, .removeEventListener, DOMContentLoaded for IE < 9 | |
* CustomEvent for IE < 9 | |
* Monkey patch custom event for IE9 - 11 | |
*/ | |
/*global define: false, module: false */ | |
/*jslint bitwise: true, forin: true, sloppy: true */ | |
(function eventModule(global, definition) { // non-exporting module magic dance | |
'use strict'; |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\Response; | |
use Symfony\Component\DomCrawler\Crawler; | |
class PjaxMiddleware |