frintjs / frint

Modular JavaScript framework for building scalable and reactive applications
https://frint.js.org/
MIT License
755 stars 34 forks source link

Frint CLI Issues #409

Closed loganpowell closed 6 years ago

loganpowell commented 6 years ago

Hi!

Just getting started with Frint and I figured I'd just -g frint-cli to get started. However, I've just a couple questions about what I'm getting from frint new:

In the package.json:

    "frint": "^3.3.1",
    "frint-react": "^3.3.1",
    "frint-store": "^3.3.1",
    "lodash": "^4.17.4",
    "prop-types": "^15.5.10",
    "react": "^16.0.0",
    "react-dom": "^16.0.0",
    "rxjs": "^5.5.0"

Shouldn't I be seeing frint... 5.x?

Also, I didn't load any examples and just wanted a bare-bones starter, but it seems there might be a Redux example in the bare frint new project, unless I missed the fact that frint is modelled after Redux's actions, reducers, constants model. The name of the project is "frint-example-counter"

Forgive me if I've missed the fact that I'll have to use the Redux pattern to use Frint.

fahad19 commented 6 years ago

Shouldn't I be seeing frint... 5.x?

Whenever you use $ frint new, it scaffolds an example application from this directory of our monorepo: https://github.com/frintjs/frint/tree/master/examples

We have an issue here for upgrading all our examples to latest version of FrintJS here: https://github.com/frintjs/frint/issues/352


frint is modelled after Redux's actions, reducers, constants model

It's not.

It is up to the application developer to decide what suits best in your application. If you want Mobx, use Mobx. If Redux or Apollo, that is fine too.

FrintJS only expects your application-wide stateful dependencies to be defined as Providers, and gives access to them via the observe higher-order component in your components tree.

Either you put Redux store, or RxJS Subject there, or a Model from frint-data, is of no concern to FrintJS :)


Regarding bare-bones starter, the "Hello World" guide should help: https://frint.js.org/guides/hello-world/

loganpowell commented 6 years ago

Thank you! Closing.