Giter VIP home page Giter VIP logo

corex-vueuse's Introduction

Corex-VueUse

Learn from VueUse.

Introduction

Try to implement VueUse functions by yourself and then think:

  • Why is my impl different from VueUse's? What are my mistakes?
  • Can I just ignore some differences to focus on core logic? What are they work for?
  • Is my impl better than VueUse's in some aspects?

Use .md files to record these valuable thoughts.

Quick Start

Here are recommendations about how to start:

  1. First of all, clone VueUse source code.
  2. Choose a VueUse function that you are interested in.
  3. Create the same directory structure for this function as VueUse done.
  4. Copy the following items as the specification:
    • Type Declarations in the online doc
    • demo.vue
    • Tests (end with .test.ts)
  5. Try to implement this function.
  6. You can import demo.vue in example web project and execute npm run dev to see whether it works (VueUse inspects demo.vue in VitePress static site, which needs more configurations).
  7. Run tests to make sure your impl works right.
  8. Compare your impl with VueUse's, correct mistakes and write docs (you can save your original impl in index.my.ts).

To focus on the logic, we can ignore some requirements:

  • Compatible with Vue2 (lib vue-demi works for this purpose)
  • Support directive and component use
  • Rely on other shared functions (you can make it up later)

corex-vueuse's People

Contributors

gstarp avatar

Watchers

 avatar

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.