See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| /** | |
| * | |
| * @param {HTMLElement} [target=document.body] - Element to querySelect in | |
| * @param {boolean} [namespaced] - Only get children with data-ref-parent-ref | |
| * @param {string} [exclude] - Selector or element who's children wont be selected | |
| * @param {boolean | function} [watch] - Watches DOM and updates refs on mutation | |
| * @param {boolean} [asArray] - Saves all refs in arrays, also single elements | |
| * @returns {Object} { myRef: div, another: [button, span] } | |
| */ | |
| export default ({ |
| import React, {useState, useEffect, useRef} from 'react' | |
| import classNames from 'classnames' | |
| import {useIntersection} from 'use-intersection' | |
| const Video = ({ | |
| video, | |
| poster, | |
| posterWidth = 1920, | |
| posterFitMode = 'preserve', |