Joyeeta Nandi's Blog

Joyeeta Nandi's Blog

React: Rename .js Page

Apr 30, 20211 min read

Before rename: (Blogs.js) const Blogs = () => ( <> <h1>Blogs</h1> <BlogsList blogs={blogContent}/> </> ); export default Blogs; App.js import Blogs from './pages/Blogs'; <Route path="/blogs" component={Blogs} /> Right-click and ren...