# 2019.11.20 今天是每日时报陪你的第 280 天

[视频] 这是一个 React Animated Sidebar Code Review 的直播情况,能直观的感受到 VS Code Live Share 的好处:https://www.youtube.com/watch?v=QHfPbnbvyeE (opens new window)

[文章] React 同步模式介绍,目前处于实验阶段:https://reactjs.org/docs/concurrent-mode-intro.html#what-is-concurrent-mode (opens new window)

[类库] 可以把文字或图片转换成 ASCII 艺术图,很好玩的一个工具:https://github.com/khrome/ascii-art (opens new window)

[类库] glob 的扩展类库,支持多种模式如,排除,模糊匹配,很实用的一个类库:https://github.com/sindresorhus/globby (opens new window)

# 配图 - Code Review

# 配图 - React 同步模式

# 配图 - ASCII

# 示例 - React 封装的百度地图组件

// 案例 1
const globby = require('globby');

(async () => {
	const paths = await globby(['*', '!cake']);

	console.log(paths);
	//=> ['unicorn', 'rainbow']
})();

// 案例 2
const globby = require('globby');

(async () => {
	const paths = await globby('images', {
		expandDirectories: {
			files: ['cat', 'unicorn', '*.jpg'],
			extensions: ['png']
		}
	});

	console.log(paths);
	//=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
})();
Last Updated: 11/25/2019, 3:33:51 PM