This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
console.log('HELLO'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { | |
ensurePluginOrder, | |
getFirstDefined, | |
makeHeaderGroups, | |
applyPropHooks, | |
mergeProps, | |
flexRender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
actions, | |
makePropGetter, | |
ensurePluginOrder, | |
functionalUpdate, | |
useConsumeHookGetter, | |
useGetLatest | |
} from '../../react-table/utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export default function useResizer() { | |
let dragging = React.useRef(false); | |
let startPos = React.useRef(0); | |
const [delta, setDelta] = React.useState(0); | |
const [dragEnded, setDragEnded] = React.useState(false); | |
React.useEffect(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { actions } from '../../react-table/utils'; | |
// Actions | |
actions.forceUpdate = 'forceUpdate'; | |
export const useControlledState = (hooks) => { | |
hooks.stateReducers.push(reducer); | |
hooks.useInstance.push(useInstance); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _isEvent(prop) { | |
if (0 !== prop.indexOf('on')) { | |
return false; | |
} | |
return true; | |
} | |
function _getEvents(obj) { |