What do these three dots in React do?

That’s property spread notation. It was added in ES2018 (spread for arrays/iterables was earlier, ES2015), but it’s been supported in React projects for a long time via transpilation (as “JSX spread attributes” even though you could do it elsewhere, too, not just attributes). {…this.props} spreads out the “own” enumerable properties in props as discrete properties … Read more