UNPKG

@winglet/react-utils

Version:

React utility library providing custom hooks, higher-order components (HOCs), and utility functions to enhance React application development with improved reusability and functionality

11 lines (7 loc) 272 B
'use strict'; var useSnapshotReference = require('./useSnapshotReference.cjs'); const useSnapshot = (input, omit) => { const snapshotRef = useSnapshotReference.useSnapshotReference(input, omit); return snapshotRef.current; }; exports.useSnapshot = useSnapshot;