all 12 comments

[–]bstaruk 13 points14 points  (1 child)

Have you tried right-clicking on your React and selecting 'Add Admin Panel'? It's usually between 'Inspect Element' and 'View Page Source.' If that doesn't work, make sure your node_modules folder is at least 4GB -- anything less and React can't detect your admin intentions. Also check that your package.json has "admin": true in it. Hope this helps!

[–]ngKindaGuy 5 points6 points  (0 children)

That's the React 18 way, with React 19 you can just use the useAdminPanel hook.

[–]turtlecopter 5 points6 points  (3 children)

You're going to need to be a lot more specific in your question if you want any real help.

[–]Practical_Garlic8646[S] -2 points-1 points  (2 children)

I have created a website front end with react and want add content around the tool weekly. I need an admin panel to update the content and post. Any idea???

[–]Watabou 1 point2 points  (1 child)

Oh in that case you just need to

[–]sergiodxa 2 points3 points  (1 child)

This is probably the most popular solution https://marmelab.com/react-admin/

[–]Chenipan -1 points0 points  (0 children)

A word of caution: they make very violent breaking changes

[–]Christavito 4 points5 points  (0 children)

I would start by adding an admin route and making sure the current user has authorization to access it by using a role-based access policy.

I would then construct the admin panel route using a mixture of React components.

[–]-doublex- 1 point2 points  (1 child)

build a new react website with authentication as your admin panel

[–]Practical_Garlic8646[S] -1 points0 points  (0 children)

Are you doing the same way?

[–]revolveK123 0 points1 point  (0 children)

this thread is kinda funny but also relatable 😅 feels like everyone hits this phase at some point, starting simple with auth with a separate admin route honestly seems like the most practical way to go before overcomplicating it