GDSC-UPES / GDSC-UPES-Website

MIT License
16 stars 26 forks source link

Changed the Routing Path #29

Closed AshiqNoor-S closed 1 year ago

AshiqNoor-S commented 1 year ago

@akshit-g @rohin079 The way the routing path was given did not render any of the elements properly, made the correction so that elements are now properly render based on its route. In this corrected version, I am using the component's element prop to specify the component to render for each route. The element prop is used in React Router v6 to specify the component for a route, replacing the component prop used in v5.