It would be nice to see the same course but with React hooks and an alternative to Pusher's Chat-api
@AP-no6uc3 жыл бұрын
you can do a practice by yourself and transform this app into one that uses hooks, for example instead of lifecycle try useEffect and for the class component use functional components with useState hook, it will be a good practice to see how much they simplify things.
@ljiljanmaksimovic14004 жыл бұрын
It seems that Pusher doesn't support Chatkit anymore. Is there any similar replacement for it, so one could follow the course? thx
@ShubhamKumar-sq2pg3 жыл бұрын
You could use socket.io
@rohandeysarkar84435 жыл бұрын
the messages are not showing on the mini browser of scrimba. But they can be seen on the chatkit console rooms, on the chatkit website.
@rosep50446 жыл бұрын
Hi Per) Thanks a lot - really cute and clear explanation!
@greenarrow66895 жыл бұрын
Great work !!!!! carry one
@CodeGoblin6 жыл бұрын
Out of curiosity, why is this not using ES2015 in places like getting rid of the constructor and super in the class? To my knowledge it is no longer required to bind "this" to the class.
@darknevin6 жыл бұрын
good question, i hope he replies
@stiforr87146 жыл бұрын
Classes were created in ES2015(ES6). I'm still learning this but, at least in React, the constructor is required when using "this". This isn't something specific to Javascript or React. Although, "this" is slightly different in Javascript. In the scope of React, constructor is used to initialize "state", fields (this.state or this.variable) and calling the parent constructor (super()) because we are extending React.Component and we need it's constructor as well. Check out a the official docs for a much better explanation :D reactjs.org/docs/state-and-lifecycle.html
@CodeGoblin6 жыл бұрын
I was watching this tut where he mentioned that constructor(super) was deprecated, and he showed use of state along with "this" without it kzbin.info/www/bejne/aGGXdGyvg8qCj6s I am by no means an expert in react tho, just find it all odd lol.
@stiforr87146 жыл бұрын
It is odd. Using a constructor is certainly not deprecated. I'll take a look at the video though.
@stiforr87146 жыл бұрын
Ok so I watched the video and I think I found the part where you were referring to. He actually isn't saying having a constructor is deprecated. He's saying that binding "this" is not required as of React v16. Now you can use arrow functions which implicitly allow use of the "this" keyword instead of binding it in the constructor. There are situations where you would still bind "this" but they are rare.
@jalasem6 жыл бұрын
Amazing! awesome
@vampirejs7583 жыл бұрын
Can you build the same app using vuejs or svelte
@Justin_Min_0014 жыл бұрын
I had to install @pusher/chatkit-client instead of @pusher/chatkit to make this work.
@AbhishekKumar-mq1tt6 жыл бұрын
Thank u for this awesome video
@pitchblackc0d3145 жыл бұрын
I cant even link the SDK, this tutorial is incomplete, ur missing so many steps, you cant expect is to know what ur doing already, my brain is stressed out now :(
@betulmervekenan95535 жыл бұрын
Heeeiiyyyy! Thank you.
@serkanakman99455 жыл бұрын
Sorry but i am new in React I did everything but see no solution :Failed to load resource: the server responded with a status of 404 (Not Found)
@serkanakman99455 жыл бұрын
index.pack.js not found
@salmanali-mv6xe5 жыл бұрын
Im also facing the same issue 404 not found
@ishitakumar22065 жыл бұрын
I'm getting a "Cannot read property "CreateRoom" of Undefined. Can anyone tell me why this could be happening?
@arpit39agarwal4 жыл бұрын
Does video explains the basics of react , JS and all ?
@abodmedia4 жыл бұрын
any replacement for pusher ?
@tomatomov90614 жыл бұрын
In the beggining you are explaining like we are totaly new in React and suddenly we start from already built code ???
@mightymarlin4 жыл бұрын
Followed the whole thing and it's not working. What IDE is this? I used imports and there are no errors but I don't have a dedicated "Dependencies" tab in code composer studio and since it's not working I'm wondering if that's why. Could anyone help please?
@ivanfrances89135 жыл бұрын
I can't get through "'Chatkit' is not defined no-undef" error...
@boi111976 жыл бұрын
Could you expand on the choice of using the spread operator when updating the state after a new message is emitted? You noted that you should limit state changes to the setState() method, but this.messages.push(message) would be occurring within that method. I'm not super experienced with React, or even JS for that matter, but intuitively it would seem like .push() would be somewhat more efficient than copying over the array of messages (again, I know that the scale here is super small, so efficiency isn't necessarily a huge concern). I just feel like I don't fully understand your reasoning in choosing one over the other. Thanks for the great tutorial by the way! I liked your presentation of the philosophies that go into designing an app like this through React.
@rooky1024 жыл бұрын
pushing onto the state wouldn't cause the component to re-render, so it wouldn't show up on the DOM when you send, only after you refresh. setState is one of the few actions that trigger a re-render.
@patheally4 жыл бұрын
Chatkit has shut down. What would you suggest as an alternative?
@rishavkumar75374 жыл бұрын
Which ide they are using
@fr47814 жыл бұрын
Is this a stencil for an app or the actual code?
@dayanr.59505 жыл бұрын
I don't understand, how do I build this project from scratch, should I use create-react-app, I am learning react and I do not understand this pretty well
@chicomigrania8225 жыл бұрын
Yup, for getting started, do use create-react-app
@abdulahad49345 жыл бұрын
after using create-react-app, make folders and files like him manually.
@serkanakman99455 жыл бұрын
@@abdulahad4934 how can i give npm run start no package.json around no scripts part
@nishmamaskey10935 жыл бұрын
@@serkanakman9945 do 'cd/(your folder name- create-react-app "_yourfoldername__") first before npm start
@ratnabhrai21176 жыл бұрын
have you uploaded the css file anywhere?
@nabloler6 жыл бұрын
nice tut! Thank you. I have a question, what if we would like to add a token to every user so we could identify them, without the need to login or sign up?
@dennienguyenUX5 жыл бұрын
I'm trying to develop this app locally using create-react-app and the css file is not rendering at all . The file structure of create-react-app is totally different to scrimba. Does anyone have a solution to this?
@nishmamaskey10935 жыл бұрын
Replace all of your files from 'create-react-app' with the ones in here under new folder 'components'. Drag the components folder under 'src'. Create new 'style.css' and connect it under App.js. Works fine.
@ShankyBady5 жыл бұрын
How do you get it to be interactive? I'm using Ubuntu 18.04 and I don't understand how it's interactive. :/
@yudisthirahadigustianda4896 жыл бұрын
Is it possible to implement this app with Redux? If possible how to do it? thanks in advance
@saudalbalooshi28285 жыл бұрын
hey bro please tell me hoe to set this error "TypeError: this.addEntry is not a function (/node_modules/@pusher/chatkit/dist/web/chatkit.js:1)" Or any body else who know how to correct this error tell me please...../..
@nademmahmodreyal41924 жыл бұрын
Unbelievable, well
@danialarshad924 жыл бұрын
I heard that chatkit is no longer available. What should I do in that case?
@adityapathania24434 жыл бұрын
Try Talkjs its very similar.
@danialarshad924 жыл бұрын
@@adityapathania2443 Thanks bruh👍
@galaxic_4 жыл бұрын
I want the source code, can you give them?
@vincebartle4 жыл бұрын
look up scrimba great chat kit
@windbreezetv5 жыл бұрын
Can someone explain to me how did he run the chat in the terminal? I know how to do with express but not with just the react command lines. Thanks
@serkanakman99455 жыл бұрын
I have the same problem Help pls
@ashleyadrias4 жыл бұрын
pusher is discontinuing chatkit, what else can we use?
@adityapathania24434 жыл бұрын
Try Talkjs its very similar.
@murtujakavantwala51354 жыл бұрын
whre i can find the code of this tutorial ?
@sourabhdubey26686 жыл бұрын
Can i use Chatkit Free of Cost. Their is no any limitations???????
@rachelmatthew67716 жыл бұрын
CSS doesnt work locally. Someone please help.
@nishmamaskey10935 жыл бұрын
check the path
@azizrakhim5647 Жыл бұрын
Why not include GitHub link?
@mahabubelahi73906 жыл бұрын
Hello, I want to know more about the IDE.
@SF-yd9cl6 жыл бұрын
thanks
@kirubelgizaw36724 жыл бұрын
where do i get the css's that u used
@DataDevWorld6 жыл бұрын
Hello. Thanks for the video but could you try to be more explanatory, you are moving so fast I can hardly comprehend how you set up the chat manager
@sarcaastech4 жыл бұрын
cant find chatkit anywhere!
@lagiator5 жыл бұрын
helpful :)
@arpitkesharwani68514 жыл бұрын
Chatkit isn't working
@junedkhatri93425 жыл бұрын
I've downloaded the zip file from the course, Can anyone tell me what is the next step? How do I run the app?
@amirmohamadbashiri4 жыл бұрын
In your app folder run npm install and then npm start to start the app
@phamthao54216 жыл бұрын
How i can download html + css version of this course ? Thanks!
@AaronC0096 жыл бұрын
Hi ! Im just a bit confused. I can add users to a room through chatkit and have that username post a message. But how do i do this through the app without going through the chatkit website? Should there be a signup screen before you enter the app or is there a way to type in your username through the app itself ?
@AaronC0096 жыл бұрын
right now once deployed i cant use a different username on a second client
@shivammaheshwari63886 жыл бұрын
You have to use Chatkit API for creating users. Send the post request to /users with name and id (required) using axios or fetch whatever you like. Read more at docs.pusher.com/chatkit/reference/api#users. I personally find easier to communicate with API rather than Client sdk.
@SudoNitro5 жыл бұрын
too any peoplehaving issues i spent 3 hours searchingforums to get this up too date follow these steps step one update your room id with "roomidnumber", example code subscribeToRoom(roomId) { this.setState({ messages: [] }) this.currentUser.subscribeToRoom({ roomId: "your code here", this is found on line 57 change dependacy from @pusher/chatkit too @pusher/chatkit-client click settings wheel near project name and >add dependacy remove old one @pusher/chatkit change line 2 of app.js too import Chatkit from '@pusher/chatkit-client' also right click and upgrade react dependencys download zip after u do this and cd too the directory in cmd and run npx react-codemod rename-unsafe-lifecycles to clean up old source lines this will solve your errors
@mightymarlin4 жыл бұрын
Thank you for this, what IDE is it?
@declineed57984 жыл бұрын
Can you put the script in the description
@Bluespoose6 жыл бұрын
Hey great video but I need help please! I locally created a react app and copied the files from the fourth video on scrimba and I got the four items to render. But it isn't in the nice format that it is on scrimba. It is just a list, thank you so much for any help!
@rachelmatthew67716 жыл бұрын
Hey, I am encountering same situation. CSS is not really working and I cant get it to work. Everything else is pretty good but design is a problem. Have you figured it out?
@abdulahad49345 жыл бұрын
@@rachelmatthew6771 Copy his style.css data to your css file and also introduce normalize.css file. After that include both of them to index.html file in public directory and the game begins!
@rachelmatthew67715 жыл бұрын
@@abdulahad4934 thanks for the reply. I tried that beforehand and got it. Thank you for the help! 😀
@zamokuhlethwala98155 жыл бұрын
@@rachelmatthew6771 I also encountered the same problem, please can you elaborate how can I do what's written above.
@zamokuhlethwala98155 жыл бұрын
@@abdulahad4934 I also encountered the same problem, please can you elaborate on what you are saying.
@mikelees186 жыл бұрын
Can we use .bind
@mafineeek4 жыл бұрын
Go for beer with me, big thanks
@coffee_n_art4 жыл бұрын
You should write the code without just explaining the already written code. BDW Nice video.
@focusonthebeat68885 жыл бұрын
When I go into instances on chatkit there is no scrimba-chatkit-course. Is there a way to fix that?
@nicolasazoidis90645 жыл бұрын
I believe you've already found the solution but if not, you need to create your own instance and name it however you like.
@AustinChabaud5 жыл бұрын
Play the video at 1.25 sounds much better
@freestyle88865 жыл бұрын
is everything in the video still up to date?
@AustinChabaud5 жыл бұрын
@@freestyle8886 yea it works fine
@franciscatv25125 жыл бұрын
i don't understand how to find codemix
@greenarrow66895 жыл бұрын
Scrimba is very promising..
@Gold_Stone5 жыл бұрын
can you share CSS file?
@audiohub26 жыл бұрын
where can i get this project file to learn?
@freecodecamp6 жыл бұрын
All the code is here: scrimba.com/g/greactchatkit
@rishavkumar75374 жыл бұрын
@@freecodecamp yes please provide the code and tell me the platform you are using for coding
@manumohanan82264 жыл бұрын
What's the alternative to ChatKit? It seems ChatKit has come to end of life.
@davidsabillon73804 жыл бұрын
I just know thaht :( And i´ll go to make this app. It´s a shame!
@adityapathania24434 жыл бұрын
Try Talkjs its very similar.
@Typical_Abc5 жыл бұрын
Its worked But its kinda Hard To Use it Take 15 Hours To do this... I Called it Disk Off
@Damjan256 жыл бұрын
1080p finally :)
@rohitrai42155 жыл бұрын
Hey, I followed the whole tutorial and built my chat app, used bootstrap instead of CSS grid. Github screenshot link to my application github.com/rovit/chat-app/blob/master/screeshot/React%20App.png please have a look if you find the time. and let me know your feedback. I appreciate your work. Thank you so much and will check out more of Scrimba
@LucasHenrique-ne7go4 жыл бұрын
Chatkit is dead :'(
@adityapathania24434 жыл бұрын
Try Talkjs
@Rhaalis4 жыл бұрын
@@adityapathania2443 Sorry. I guess it's been a long time since you commented but isn't TalkJS chargeable? I mean the version I can release not the demo?
@tyreelindsey20124 жыл бұрын
can i pay someone to make a functioning chat app for me?
@ProSimples4 жыл бұрын
THIS TUTORIAL DONT TEACH YOU HOW TO INSTALL THE ENVIRONMENT!!!!!!!!!!!!!!!!!
@aliasgar.burhani10994 жыл бұрын
just type 'npx create-react-app chatapp' in your command line and it will create a react app for you
@nishmamaskey10935 жыл бұрын
I do not see Scrimba chat kit instance what do I do?