ecommerce-site-template | beautiful e-commerce template | State Container library
kandi X-RAY | ecommerce-site-template Summary
kandi X-RAY | ecommerce-site-template Summary
A beautiful e-commerce template powered by React, Redux and other modern web tech.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize Redux store .
- Creates a new store reducer .
ecommerce-site-template Key Features
ecommerce-site-template Examples and Code Snippets
Community Discussions
Trending Discussions on ecommerce-site-template
QUESTION
I need helo about a react-redux project that I using for studying purposes: https://github.com/arshdkhn1/ecommerce-site-template
What I don't understand is how the redux store is provided.
I can see the configureStore.js file but there is no reference to it in the entire project. Am I missing something?
In fact, I need to understand how it is working because I'm trying to create protected route pretty much like this tutorial: https://github.com/Remchi/reddice/blob/master/client/utils/requireAuth.js which creates a high-order component and uses the connect function from react-redux. Unfortunately I get this error:
Probably because of how/where the redux store is configured.
Can someone explain me what is happening, how this store is working and maybe how to create a private route for the project?
...ANSWER
Answered 2017-Oct-13 at 19:28The index.js should reference the configureStore.js and have a call like const store = configureStore();
in it before the render call. Something like
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ecommerce-site-template
Install yarn globally by npm install yarn -g
yarn install
yarn start
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page