JavaScript
- 64 ответа
- 0 вопросов
69
Вклад в тег
function bindActionCreator(actionCreator, dispatch) {
return function () {
return dispatch(actionCreator.apply(this, arguments));
};
}
function () {
return dispatch(actionCreator.apply(this, arguments));
};
<div className="todos" вот сюда>
<div key={todo.id} className="item-todo" >
useEffect(() => {
getTodos()
}, [вот тут])
useEffect(() => {
getTodos()
// eslint-disable-next-line
}, [])
npm i iconv-lite
const request = require('request'),
fs = require('fs'),
iconv = require('iconv-lite');
request({
url: 'https://litportal.ru/trial/txt/6376244.txt',
encoding: null,
body: 'Buffer'
}).pipe(iconv.decodeStream('win1251'))
.pipe(iconv.encodeStream('utf8'))
.pipe(fs.createWriteStream('file-in-utf8.txt'));