All Downloads are FREE. Search and download functionalities are using the official Maven repository.

contexts.AutoSubmitContext.tsx Maven / Gradle / Ivy

import React, { createContext, useRef } from 'react';

export type SetAutoSubmit = React.Dispatch> 
export type AutoSubmitRef = React.MutableRefObject

export const AutoSubmitContext = createContext(null as unknown as AutoSubmitRef);

const AutoSubmitProvider = ({children}: {children: React.ReactNode}) => {
  const ref = useRef(null)

  return (
    
      {children}
    
  )
}
 
export default AutoSubmitProvider;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy