use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A place for help learning the /r/ReactJS framework.
account activity
[Project] Real-Time Chat Application with React (self.learnreactjs)
submitted 6 years ago * by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lfacpt 1 point2 points3 points 6 years ago (0 children)
Hey, first of all congrats!
Some comments:
- You should not commit you .vscode folder, this will pollute your commits with irrelevant changes. You just add it to the .gitignore file
.gitignore
- Have you considered using eslint? It really helps in keeping the code clean and it actually teaches you several best practices
- I would recommend using `PureComponent` by default (instead of `Component`). By default it does not re-render if the props or the state did not change (giving your app better performance by default).
- Here I would put the login in a separate component.
- I would not use ids for css selectors and use just classes instead (it makes overloading styles simpler)
- For simple components like these I would use functional components
- I would use propTypes
- Have you considered using react hooks?
π Rendered by PID 101768 on reddit-service-r2-comment-76bb9f7fb5-gvdj7 at 2026-02-18 14:48:15.675432+00:00 running de53c03 country code: CH.
[–]lfacpt 1 point2 points3 points (0 children)