
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-tsuki
Advanced tools
A versatile React component library with utility hooks and functions, built with TypeScript.
react-tsuki is a versatile React component library with utility hooks and functions, built with TypeScript. It aims to provide developers with reusable, well-tested components and utilities to streamline their development process.
You can install react-tsuki via npm or yarn:
npm install react-tsuki
or
yarn add react-tsuki
Import and use the available components in your React application.
import { Button } from "react-tsuki";
const App = () => (
<div>
<Button label="Click Me" onClick={() => alert("Button clicked!")} />
</div>
);
Leverage custom hooks to manage state and side effects efficiently.
useFetch
import { useFetch } from "react-tsuki/hooks";
const FetchComponent = () => {
const { data, loading, error } = useFetch("https://api.example.com/data");
if (loading) return <p>Loading...</p>;
if (error) return <p>Error: {error.message}</p>;
return <div>{JSON.stringify(data)}</div>;
};
Utilize the provided utility functions to handle common tasks.
capitalize
import { capitalize } from "react-tsuki/utils";
const text = "hello world";
const capitalizedText = capitalize(text);
console.log(capitalizedText); // Output: Hello world
• useToggle: Toggle boolean state.
• useLocalStorage: Sync state with localStorage.
• usePrevious: Get the previous state value.
• useWindowSize: Get window dimensions.
• useFetch: Fetch data with loading and error states.
• usePost: Send POST requests.
• useDelete: Send DELETE requests.
• usePut: Send PUT requests.
• usePatch: Send PATCH requests.
• useGet: Send GET requests.
• useFetchWithCancel: Fetch data with cancellation.
• useRetryFetch: Retry fetch on failure.
• useFetchOnMount: Fetch data on mount.
• useFetchInterval: Fetch data at intervals.
• useClickOutside: Detect clicks outside an element.
• useDebouncedValue: Debounce a value.
• useHover: Detect hover state.
• capitalize: Capitalize the first letter of a string.
• deepClone: Deep clone an object.
• debounce: Debounce a function.
• throttle: Throttle a function.
• formatDate: Format a date.
• mergeObjects: Merge multiple objects recursively.
• isEmpty: Check if an object or array is empty.
• randomString: Generate a random string.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License.
Enjoy building with react-tsuki! 🎉
FAQs
A versatile React component library with utility hooks and functions, built with TypeScript.
We found that react-tsuki demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.