Passing props with the same named variable is a rather common, obvious redundancy JSX could do without
Thus, Instead of:
<Auth session={session} reloadSession={reloadSession} />
You can simply write:
<Auth session reloadSession />
npm i babel-prop-name-value-shorthand --save-dev
{
"plugins": ["module:babel-prop-name-value-shorthand"]
}
- ts(2322)