javascript - Pattern for global object in React Native -
is there well-established pattern allowing single object available modules in react native application? know can pass object routemapper every particular scene , access way, feels lot of boilerplate , repeated code when absolutely need accessible entire application. in fact, need listening events @ times.
well, there react context. https://facebook.github.io/react/docs/context.html general wisdom is: don't use it.
Comments
Post a Comment