bruno/renderer/providers/App/index.js
2022-03-18 01:56:25 +05:30

18 lines
329 B
JavaScript

import React from 'react';
import useIdb from './useIdb';
export const AppContext = React.createContext();
export const AppProvider = props => {
// boot idb
useIdb();
return (
<AppContext.Provider {...props} value='appProvider'>
{props.children}
</AppContext.Provider>
);
};
export default AppProvider;