Skip to content
/ lite-hox Public

A lite version of "hox" (a share-hook library )

Notifications You must be signed in to change notification settings

EiosH/lite-hox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lite-hox

A lite version of "hox" (a share-hook library )

how to use

// useHox.ts
const useHox = () => {
  const [hox, setHox] = useState("");
  return { hox, setHox };
};

export default createModel(useHox);

// App.tsx
function App() {
  const { hox } = useHox();
  return (
    <div>
      <h1>ezio love {hox}</h1>
    </div>
  );
}

About

A lite version of "hox" (a share-hook library )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published