Meet "reactuals" : A Cool React Hook Library

Ankit KumarAnkit Kumar
4 min read

Hey Dev folks! I'm stoked to share Reactuals (live at reactuals.vercel.app), a bunch of React hooks that make building web apps quicker by handling browser stuff and UI tasks. Whether you're coding in India, UK, US or anywhere else, Reactuals is here to save you time.

In this post, I'll show you why Reactuals is worth a look, share two handy hooks with code, and invite you to try it or help make it better. Let’s jump in!

What’s Reactuals?

Reactuals is a set of React hooks that take the pain out of using browser APIs and common UI patterns. It’s for devs who want to add features fast without extra hassle. Here’s why it’s cool:

  • Lightweight: Just use the hooks you need, no fluff.

  • TypeScript Ready: Clean types for easy coding.

  • Modern APIs: Covers Web Share, Bluetooth, and more.

  • Responsive Made Easy: Hooks like useBreakpoint simplify layouts.

  • Solid Docs: Check reactuals.vercel.app for examples and demos.

It’s great for side projects, startup apps, or just playing with new ideas.

Try These Hooks

Here are two Reactuals hooks to give you a feel for it. They’re simple and ready to use in your projects.

useBreakpoint for Responsive Layouts

Want your app to look good on any screen? useBreakpoint tracks screen size changes with your custom breakpoints, so you don’t need to mess with CSS media queries.

import { useBreakpoint } from "reactuals";

const breakpoints = {
  sm: 640,
  md: 768,
  lg: 1024,
};

function ResponsiveBox() {
  const { breakpoint, isAbove } = useBreakpoint(breakpoints);

  return (
    <div className="p-4">
      <h2>Screen: {breakpoint || "default"}</h2>
      <p>{isAbove("md") ? "Big screen mode!" : "Small screen mode."}</p>
    </div>
  );
}

Resize your browser to see it switch. Perfect for dashboards or websites that work on phones and laptops.

useWebShare for Easy Sharing

Let users share your app’s content to WhatsApp or email with useWebShare. It uses the browser’s sharing options, like the share button on your phone.

import { useWebShare } from "reactuals";

function ShareLink() {
  const { share, isSupported } = useWebShare();

  const handleShare = async () => {
    await share({
      title: "Reactuals",
      text: "This library is super helpful!",
      url: "https://reactuals.dev",
    });
  };

  return (
    <div className="p-4">
      <button
        onClick={handleShare}
        disabled={!isSupported}
        className="px-4 py-2 bg-blue-500 text-white rounded disabled:bg-gray-400"
      >
        Share Now
      </button>
    </div>
  );
}

Click it on your phone, and sharing options pop up. Awesome for blogs or online stores.

More Reactuals Hooks

Reactuals has tons more hooks to check out! A few examples:

  • useEyeDropper: A color picker tool via Browser API.

  • useWebBluetooth: Connects to Bluetooth devices for IoT stuff.

  • useScrollLock: Locks scrolling for modals or sidebars.

See them all at reactuals.vercel.app, with code and live demos.

How to Get Started

It’s dead simple to use Reactuals:

  1. Install It:

     npm install reactuals
    
  2. Use a Hook:

     import { useBreakpoint } from "reactuals";
    
  3. Build Stuff: Add responsive layouts, sharing, or other features to your app.

The Reactuals docs have all you need to get going, from setup to hook details.

Join the Fun

Reactuals is open-source, and I’d love for you to jump in. Whether you’re in Hyderabad, Pune, or anywhere, here’s how you can help:

  • Try It Out: Head to reactuals.vercel.app and test a hook.

  • Star It: Like it? Star the GitHub repo (replace with your repo link).

  • Pitch In: Fix bugs, add hooks, or tweak the docs. Check for “good first issues.”

  • Share Ideas: Got feedback or a new hook idea? Comment below or hit up GitHub.

If you build something cool with Reactuals, let me know—I wanna see it!

Why I Made Reactuals

I got fed up writing the same code for browser APIs and UI tasks again and again. Reactuals is my way of making those things easier for all of us, especially devs in India who are creating killer apps. Let’s make the web better together!

Give It a Shot

Reactuals is here to help you build better React apps, faster. Visit reactuals.vercel.app/docs to explore the hooks, and let me know what you think in the comments. Got a favorite hook or an idea for a new one? Tell me below!

Happy coding, and let’s make awesome stuff! 😊

#Reactuals #ReactHooks #ReactJS #WebDev #JavaScript #OpenSource #ReactLibrary #IndianDev #CodeIndia #DevTools #FrontendDev #React2025 #BuildWithReact #TechIndia #DeveloperLife

0
Subscribe to my newsletter

Read articles from Ankit Kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ankit Kumar
Ankit Kumar