How To Make Tic Tac Toe Game In React | Create Tic-Tac-Toe Using React JS

Поделиться
HTML-код
  • Опубликовано: 7 сен 2023
  • Learn How To Make Tic Tac Toe Game In React | Create Tic-Tac-Toe Using React JS Step by step tutorial
    ❤️ SUBSCRIBE: @GreatStackDev
    In this tutorial we will learn to create Tic Tac Toe Game in React JS. This will be completely functional game that can be played by 2 players. After wining it will display the winner name. We will build this Tic Tac Toe game using HTML, CSS and React JS.
    Download the assets: drive.google.com/file/d/1Rmqw...
    👉 React Introduction Tutorial: • What Is React (React J...
    #ReactJS #ReactJsTutorial #WebDevelopment #GreatStack
    -------------------------------------
    Build more React JS projects:
    Complete Portfolio Website In React:
    👉 • How To Make Portfolio ...
    Build ChatGPT Clone In React:
    👉 • Build ChatGPT In React...
    Build AI Image Generator with OpenAI In React
    👉 • Build An AI Image Gene...
    Create Weather App In React
    👉 • How To Create Weather ...
    -------------------------------------
    Recommended Videos:
    Learn Complete HTML and CSS from basics:
    ► • HTML And CSS Tutorial ...
    Make A Complete Website for college using HTML & CSS:
    ► • How To Make A College ...
    How to make personal resume website step by step:
    ► • How To Make A Website ...
    How to make an Ecommerce Website Design:
    ► • How To Make eCommerce ...
    How to make travel website design with HTML CSS Bootstrap:
    ► • How To Make A Website ...
    -------------------------------------
    Connect with me:
    👉 linktr.ee/iamavinashkr
    Connect with GreatStack:
    Instagram: / greatstackdev
    Twitter: / greatstackdev
    Facebook: / greatstack

Комментарии • 67

  • @iftyrahman2239
    @iftyrahman2239 8 месяцев назад +3

    Thank you for this awesome tutorial ❤

  • @abhinavgupta1219
    @abhinavgupta1219 8 месяцев назад

    This is awesome tutorial, i can now easily make tic tac toe game. Thanks for this ❤ best yourube channel to learn frontend development.

  • @Eclipssed
    @Eclipssed 8 месяцев назад +8

    Hey brother I really like your teaching style. A single request to make a playlist of react so that it becomes easy to access react videos only. Pleazzzzzzzzzzzzzzzzzzzzz🙏

  • @ifeomadymphna
    @ifeomadymphna 8 месяцев назад +1

    Nice tutorial 😊

  • @NikhilPawar151
    @NikhilPawar151 6 месяцев назад

    Thank you for such valuable content.

  • @palanimathi4493
    @palanimathi4493 8 месяцев назад

    Thanks for this video, Need a Javascript video continuation....

  • @n0social
    @n0social 2 месяца назад

    FINALLY MY FIRST REACT PROJECT THAT WORKS!

  • @dancepractice805
    @dancepractice805 7 месяцев назад +1

    It was very useful

  • @mdsabbirhossen884
    @mdsabbirhossen884 8 месяцев назад

    Do you need channel seo manager?

  • @loser8198
    @loser8198 8 месяцев назад

    Awesome

  • @SandeepMR26
    @SandeepMR26 7 месяцев назад

    Awesome keep it up .
    .

  • @Nanashi-rq7lk
    @Nanashi-rq7lk 8 месяцев назад +1

    Nice

  • @tebiksingh
    @tebiksingh 5 месяцев назад

    Love and guidance ❤

  • @tarun7453
    @tarun7453 7 месяцев назад

    Nice project made it but if I click at same postion more than once the output is different

  • @joshuasappor5435
    @joshuasappor5435 4 месяца назад

    nice tutorials but please with the rows in the board i think it show be column instead. So maybe column1, column2, column3 because it almost confused me when i opened in the developer tools with chrome

  • @prakashchalke1708
    @prakashchalke1708 7 месяцев назад

    Wonderful, friend.

  • @devrimsarikaya
    @devrimsarikaya 2 месяца назад

    çok teşekkürler :)

  • @eugeneokaka
    @eugeneokaka 8 месяцев назад

    more react content

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 5 месяцев назад

    thank you

  • @user-zw7vd7fj1q
    @user-zw7vd7fj1q 4 месяца назад

    cool game making bro

  • @user-vp7gf2yi8n
    @user-vp7gf2yi8n 6 месяцев назад

    Thanks...

  • @orlandoferazzani3639
    @orlandoferazzani3639 Месяц назад

    works almost fine, but if you try it, you will see that you can put two elements on top of eachother, because it doesnt check if the box is empty

  • @rachappajiachar5062
    @rachappajiachar5062 8 месяцев назад

    how to create mulitple product details page in single html page using JavaScript please reply sir

  • @worstlaw4462
    @worstlaw4462 3 месяца назад

    Great, bu there will be a bug in this game, that is once you double click on already selected box you can again do the same move. I mean, if you click once a box and you get cross, thenagain click on the same box, and then try clicking another block, you will get cross again but whereas you should get a circle.

  • @dipankarpaul3405
    @dipankarpaul3405 8 месяцев назад

    Please make some videos with Svelte or SvelteKit...

  • @RazorTech911
    @RazorTech911 3 месяца назад

    dude, such a nice video and no github link ?

  • @user-os4lj3pi4q
    @user-os4lj3pi4q Месяц назад

    Dam, some bad practices here (inerhtml, writing the blocks one by one, writing EVERYTHING in one file, box i is also box i-1...)
    But it was helpful as some way to start.

  • @yashlad9412
    @yashlad9412 8 месяцев назад

    At timestamp 16:50,
    In TicTackToe Component,
    Why have you repeated the code from line 61 to 64?

  • @shreyashyadav4169
    @shreyashyadav4169 7 месяцев назад +1

    pls provide your Git hub link

  • @franciskp9117
    @franciskp9117 Месяц назад

    You videos are alright. A bit more explanation would be great. As a beginner I don't understand, why some steps are done in your tutorial.

  • @ParallelXL
    @ParallelXL 8 месяцев назад +1

    Hey I am here after like years, And I just remembered from Whom I used to learn back in those days
    So I searched easy tutorials and yeah
    Why yall changed the name and are there multiple teachers now?

    • @GreatStackDev
      @GreatStackDev  8 месяцев назад +1

      Hi Ayan, Thanks for coming back. I find GreatStack more relevant to the content we make. Yes, now we are working as a team. Btw, I really liked your Netlify portfolio site.

    • @officialSportsE
      @officialSportsE 7 месяцев назад

      ​@@GreatStackDevhow to create username and highest score in sec.

  • @ibrohimismoilov8345
    @ibrohimismoilov8345 4 месяца назад

    hi bro there is bug, where i finished game with toe. You haven't checked this situation.

  • @user-xe6ru6rt2l
    @user-xe6ru6rt2l 8 месяцев назад +2

    Bro on the next Please make a video about full stake freelancer website

  • @aswinkrishna9783
    @aswinkrishna9783 3 месяца назад

    why images are not showing when i import

  • @sonalkhapre5716
    @sonalkhapre5716 8 месяцев назад

    How to add draw msg, if there is draw?

    • @rashmithagudipudi5979
      @rashmithagudipudi5979 8 месяцев назад

      create variable like is draw
      let isDraw=false;
      then modify cheeckwin with include the draw condition
      else if (!data.includes("")) {
      .
      isDraw = true;
      setLock(true);
      titleRef.current.innerHTML = 'It\'s a Draw!';
      }

  • @ArshaqAk
    @ArshaqAk 6 месяцев назад +6

    It is not working properly

    • @govindsharma973
      @govindsharma973 2 месяца назад

      Bhai tumne data array ko tictac ka function hai na usse bahar karo sayad kaam kar jaye ye

  • @arunkumar-pr1rg
    @arunkumar-pr1rg 25 дней назад

    You need to explain the conditions which you are using and why you are using
    You are just saying we will set ,we will create ., but need to explain why it is needed there

  • @omsatishthanage6083
    @omsatishthanage6083 2 месяца назад

    how to add draw condition?

  • @heyyangshuman
    @heyyangshuman 4 месяца назад

    npm create-react-app . is taking hours to install. What should I do?

    • @User123_00__
      @User123_00__ 3 месяца назад

      First you need to install node js on your system

    • @pratishrutisahoo7
      @pratishrutisahoo7 3 месяца назад

      npm create vite@latest

  • @SBamniya
    @SBamniya 8 месяцев назад +3

    Good try, keep it up, I would suggest to study more about the logics before making video.
    You don't need multiple references for reset, you can do it in better way without multiple reference, the data that you stored could be a state, the conditions are really messed. The counter update is not the correct way either, lots if duplicacy.

  • @pain5772
    @pain5772 7 месяцев назад

    Sir my output is showing error that e is not defined and useRef is not defined why is that

    • @FesiBaya
      @FesiBaya 6 месяцев назад

      useRef should be inside: const TicTacToe = () => { let titleRef = useRef(null);
      }
      and in
      return ( Tic Tac toe Game In React )

  • @fast_develop
    @fast_develop 8 месяцев назад

    Lol, react documentation game

  • @opivcm4566
    @opivcm4566 7 месяцев назад

    guys i am getting error in @4:44

  • @titikshyachanda8623
    @titikshyachanda8623 3 месяца назад

    Why does my toggle function not working?

    • @govindsharma973
      @govindsharma973 2 месяца назад

      Listen tumne data array ko sayad tictac toe ka component ke upar declarr karo chal jayega

  • @user-lm6dv9nt3f
    @user-lm6dv9nt3f 5 месяцев назад

    Line 11:23: 'useState' is not defined no-undef
    Line 12:22: 'useState' is not defined no-undef
    Line 20:13: 'e' is not defined no-undef
    Line 25:13: 'e' is not defined
    i am having the above issue help me

    • @jasongutierrez2548
      @jasongutierrez2548 5 месяцев назад

      At 9:29 const toggle = (e,num) =>{ replace w with e

    • @salimbendag6274
      @salimbendag6274 4 месяца назад +1

      and for useState you need to import it " import { useState } from 'react'; "

  • @acardona8340
    @acardona8340 2 месяца назад

    Reset the counter on reset

  • @aztra_01
    @aztra_01 5 месяцев назад

    What if the game gets a Draw?

  • @Examplist
    @Examplist 4 месяца назад

    bad pronounciation, couldnt understand words 9:24

    • @user-os4lj3pi4q
      @user-os4lj3pi4q Месяц назад

      Oh, poor of you, 1 work stoped you.
      Go an learn some English so 1 word doesn't stop you next time. No problem for me.

  • @atulmourya7130
    @atulmourya7130 Месяц назад

    bugs alert!
    if you try to click again the box which is already clicked you will get an error and the count of value is increament as well.
    use bellow fixed toggle method to escape the issue!
    const toggle =(e,num)=>
    {
    if(lock){
    return 0;
    }
    if (count%2 === 0){
    e.target.innerHTML = ``;
    if(data[num] === "" ){
    data[num] = "x";
    setCount(++count);
    }
    }
    else{
    e.target.innerHTML = ``;
    if(data[num] === "" ){
    data[num] = "o";
    setCount(++count);
    }
    }
    checkwin();
    }