Giter Club home page Giter Club logo

react-use-resize's Introduction

Hi there

About me

  • I'm currently working as Front end software engineer @kakaopaysec
  • BlogLinkedin

react-use-resize's People

Contributors

mugglim avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

react-use-resize's Issues

Change parameter types

Change parameter types

Description

  • Change parameter order and types for DX.

To develop(check list)

  • change useResize parameters
// AS-IS
const useResize = <T extends Element>({
  onResize,
  options = {
   // ...
  },
}: UseResizeProps) => {}

// TO-BE
const useResize = <T extends Element>(
  onResize: OnResize,
  options: Options = {
    // ...
  },
) => {}

## To know

- `onResize` parameter is first parameter
- `options` parameter is second parameter

Add examples directory for demo

Add examples directory for demo

Description

  • please add example directory for demo

To develop(check list)

  • add examples for demo

To know

  • None..

Add debounceDelay option

Add debounceDelay option

Description

To develop(check list)

  • add debounce delay for optimizing callback function call
const { elementRef } = useResize<HTMLHeadingElement>({
    onResize: () => {
      // ...
    },
    options: {
      // default `debounceDelay` is 0
      debounceDelay : 1_000
    }
  });

To know

  • None..

Setup dev environment(lint, git hook)

Setup dev environment

Description

  • 일관성있는 개발 환경을 구축하기 위한 도구를 설치한다.

To develop(check list)

  • husky (for using git hook)
  • lint-staged(will be triggered pre commit)
  • commitlint(will be triggered pre commit)

To know

  • None

Fix onReize function is not excuted!

fix onReize event is not fired!

Description

To develop(check list)

  • onResize function will be excuted after element is resized!

To know

  • v0.0.2 is worked for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.