P
P
patriot022016-07-22 16:29:03
React
patriot02, 2016-07-22 16:29:03

Is it possible to include redux just as a library?

Is it possible to include redux just as a library without npm and any builders?
i.e. like for example react:

<script src="https://fb.me/react-15.2.1.min.js"></script>
<script src="https://fb.me/react-dom-15.2.1.min.js"></script>

The documentation says https://rajdee.gitbooks.io/redux-in-russian/conten... , which can be done from here https://npmcdn.com/[email protected]/dist/. But with such a connection, it writes that the functions are not defined, for example, createStore (), there were no questions through npm, but this method is not suitable, because I am making a site on django using the gunicorn + nginx server, I would like to see how simple the library is. Sorry if this is a stupid question, but I couldn't find a solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2016-07-22
@patriot02

https://npmcdn.com/[email protected]/dist/redux.js
All of these features will be available through window.Redux.
In general, learn to use bundlers and es2015/es7 (object rest/spread, class properties).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question