GithubHelp home page GithubHelp logo

Comments (5)

avkonst avatar avkonst commented on August 22, 2024

It is State Access Interface. This is documented here: https://github.com/avkonst/hookstate#stateinf

from hookstate.

ppwfx avatar ppwfx commented on August 22, 2024

Perfect, cheers, thanks for the clarification. I finally found the time to give it a try, I'm loving it so far! Thanks a lot!

from hookstate.

avkonst avatar avkonst commented on August 22, 2024

Maybe it should have better name. I am thinking to align names in version 2. I have not decided how StateInf, createStateLink, useStateLink and StateLink should be named. I thought to rename it as the following: StateInf => State, createStateLink => createState, useStateLink => useState, and keep StateLink. But it has got the downside that useState may collide with React.useState. Although it is possible to make useStateLink returning a value compatible with React.useState return type. In this case useStateLink could just replace React.useState without side effects (except it will have render optimisation). How do you think we should name the things?

from hookstate.

avkonst avatar avkonst commented on August 22, 2024

If you like it, I appreciate if you could spread few words about it to help the project to grow. Thanks!

from hookstate.

ppwfx avatar ppwfx commented on August 22, 2024

In regards to naming in general, Clean Code has a pretty nice chapter on naming (2cents)

Other than that, I would avoid naming collisions. Makes it harder to read (ah in terms of hard to read, the code examples are pretty hard to read, as they don't have syntax highlighting, maybe just have a docs folders with .mds) Maybe you could also see it like this: State is component scoped and Links are what's interconnecting components. You could have useLink and createLink or similar to draw a clear line. I guess it's also easier to market as I think your goal is to become the next redux, which I'd really like to see happen. I really like the zero boilerplate way you enabled!

In regards to spreading the word, we are working on a couple of open-source projects that'll be released soon. I'm very happy to highlight hookstate as a dependency

from hookstate.

Related Issues (20)

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.