hdr-js / melting-pot

A react utility library.

Home Page:https://melting-pot.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Melting Pot

The @withvoid/melting-pot package contains utilities, helper methods - your typical daily use funcs and so on. See demo and docs.

Getting Started

Install the package via npm or yarn:

npm install @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>
)

About

A react utility library.

https://melting-pot.netlify.com

License:MIT License


Languages

Language:JavaScript 96.6%Language:HTML 3.0%Language:CSS 0.4%