<T> = iterable (то есть, что-то перечисляемое, доступное для перебора)
Легенда:
- ✏️ метод изменяет
this. - 🔒 метод не изменяет
this.
Array.prototype.*:
| // connect() is a function that injects Redux-related props into your component. | |
| // You can inject data and callbacks that change that data by dispatching actions. | |
| function connect(mapStateToProps, mapDispatchToProps) { | |
| // It lets us inject component as the last step so people can use it as a decorator. | |
| // Generally you don't need to worry about it. | |
| return function (WrappedComponent) { | |
| // It returns a component | |
| return class extends React.Component { | |
| render() { | |
| return ( |
After installing the postgres app: http://postgresapp.com/
It will create a database user with the current username, to create another user for example 'postgres':
$ createuser postgres -s
Open psql with the created user using -U
$ psql postgres -U postgres