Code Monkey home page Code Monkey logo

Comments (4)

spencercarli avatar spencercarli commented on May 21, 2024 1

Thanks for the feedback @wbashir and @smooJitter! Mantra is definitely on my radar.

One concern I have with integrating any external frameworks is how opinionated/complicated it may get and the additional learning it would take to get started.

For example, in a client project I'm using Redux as the data store and I've really enjoyed it - but there is definitely a learning curve associated with Redux. It's something I'm trying to weigh the pros and cons on.

Maybe the best route would be, as @smooJitter mentioned, creating a separate react-native+meteor+mantra-bolierplate.

from react-native-meteor-boilerplate.

smooJitter avatar smooJitter commented on May 21, 2024

@wbashir that would be icing on the cake! Mantra claims to support this sort of abilities. Consider your work in this area, it would be very helpful to see at react-native+meteor+mantra-bolierplate. Especially one that uses react-native-router-flux. The mantra atom package makes for straight forward reasoning about mantra.

from react-native-meteor-boilerplate.

smooJitter avatar smooJitter commented on May 21, 2024

Hello, Mantra is actually really easy to pick up. It's nothing more than a way to organize code where actions, data fetching, and UI components are maintained separately. Two core concepts holds it together. Actions and data composed via container components are passed stateless UI components via props and injected dependancies (similar to Redux connect). For Meteor, Mantra provided a nice way around Redux, however Mantra runs into a few challenges in the case of React-Native because Meteor's Tracker, Minimongo, and Reactive-dicts are used for Local State management. These tools are now available through meteor-react-native, so it didn't take a lot to integrate the two.

The challenge however, is the approach Meteor-React-Native handles reactive data loading (@connectMeteor and getMeteorData()). There's a nice write-up that clarifies the key difference. You may find it interesting considering your recent article about Pubs/Subs versus Methods. What makes Mantra so cool, the ease of switching between React and React-native UIs.

from react-native-meteor-boilerplate.

spencercarli avatar spencercarli commented on May 21, 2024

I'm leaning towards letting people choose their own way of building out the Meteor side of things. If I tried to add that to this boilerplate I feel it may be too overwhelming for new people. In the latest major update I've referenced Mantra and the Meteor Guide to look at as ways to organize the Meteor app.

I appreciate everyone's input!

from react-native-meteor-boilerplate.

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.