Skip to content

Tag: react-router

Make page only accessible if logged in – React

Hello, please I,m a beginner in react. and I need help in knowing how to approach this challenge in the snippet above, is my homepage. my goal now is to make only explore and tour components to visible when user is logged out. so when the users visit the homepage the components will be displayed but when logg…

send id (or get id from router path)

I got simple blog (react/redux) (only frontend part). With user registration and articles. And stuck when tryed to send id to editor. I have same form, but different path for add new and for edit existing article: it might be simple but I have no idea how to send(or get) id to ArticleEditor component to fill …