GithubHelp home page GithubHelp logo

social-media-udemy-course's Introduction



Updates made since the course published:


Nextjs version update

  • Nextjs version updated to 12.1.0 (Latest one at the time of commit).


socket.io version update

  • Updated socket io version to 4.4.1 (Latest one at the time of commit). Now io is not a default export from socket.io-client package.
// Previously
import io from "socket.io-client";

// Version 4.4.1
import { io } from "socket.io-client";


Important changes inside signup page.

  • I've removed all the states for username input field on signup page.

  • Now, we're using vanilla js alongwith useRef hooks inside signup page for making updates to username field. The changes made are inside pages/signup.js



axios cancelToken deprecated

  • Starting from v0.22.0 Axios supports AbortController to cancel requests and cancelToken method is deprecated.

  • I've replaced cancelToken with AbortController inside the project. Changes made are inside pages/signup.js and components/Layout/Search.js



components/HeadTags.js removed

  • With the latest version (12.1.0), nextjs recommends to link stylesheets inside pages/_document.js. And the tags like <title>, <meta> to be moved inside next/head.

  • Thats why the stylesheets link tags have been moved to pages/_document.js. And the meta tags are inside pages/_app.js.

  • Visit NextJs Docs for more info.



A new SocketHoc component

  • Explanation about this Here.


getInitialProps replaced with getServerSideProps

  • Explanation about this Here


moment.js replaced with dayjs

  • The main reason behind this is that moment.js is in maintenance mode. Also, moment is a huge library.

  • Comparatively, dayjs is only 2kb in size. The changes made are inside utils/calculateTime.js



Some other minor bug fixes..



Note: The vulnerabilities warning which appears while installing node_modules is because of nodemailer-sendgrid-transport dependency. You can remove this dependency if you aren't going to use it for emails.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.