/melting-pot

A react utility library.

Primary LanguageJavaScriptMIT LicenseMIT

Melting Pot

The @withvoid/melting-pot package contains utilities, helper methods - your typical daily use functions (mostly in hooks).

Demo

Hosted at 2 great platforms together.

Getting Started

Install the package via npm or yarn:

npm install @withvoid/melting-pot --save

Or if you prefer yarn

yarn add @withvoid/melting-pot

Create your first application like so:

import React from "react"
import { useWindowSize } from "@withvoid/melting-pot"

const App = () => (
  const {width, height} = useWindowSize();
  <div>
    <p>The current height of screen is {height}px</p>
    <button type="button">
      {width <= 340 ? 'Click': 'Click Me!'}
    </button>
  </div>
)