React tutorial in Hindi #16 Hide , Show and Toggle in ReactJs

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

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

  • @NikhilKumar-pb1pj
    @NikhilKumar-pb1pj 2 года назад +8

    jis bande me knowledge pura rhta h whi itna clear bta skta h , maine dekha h apki sb videos clear and cut rhta h ❤️, ni to baki log itna complex kr dete h code ko

    • @bkishwarchavan7787
      @bkishwarchavan7787 Год назад

      correct bhai.......baki sah chutiya hai...or hame bhi chutiya banate hai

  • @ALOKKUMAR-qj2bw
    @ALOKKUMAR-qj2bw 2 года назад +6

    using (!argument) to toggle , Awesome. I remember once stuck to apply this simple function.

  • @noorb374
    @noorb374 2 года назад +7

    this question was asked for coding challenge in interview but i could not solve it ... how simple this was

  • @thecomputerworld6021
    @thecomputerworld6021 Год назад +4

    Jai shree ram 🚩🚩🚩 sir hats off to you the way u make understand is unique

  • @mathis-meth4229
    @mathis-meth4229 2 года назад +1

    Sir you take the best examples to explain concepts.⚡⚡⚡

  • @theroyalthings
    @theroyalthings 2 года назад +8

    Assalamiolikum Dear SIR, i am thankful to you that you are providing great learning concepts for all developers. 😊😉

  • @NoorFatima-qx7rv
    @NoorFatima-qx7rv Год назад

    Thanksssssssssss A lot Sir Really very Awesome Tutorial in very easy way and short time you explain each and Everything very clearly thank you sooooo much Stay Blessed 😇😇

  • @nstha8848
    @nstha8848 Год назад +5

    To those who want to toggle the button name here is:
    const [name, setName] = useState('Hide');
    const [visible, setVisible] = useState(true);
    const toggle = () => {
    setVisible(!visible);
    !visible ? setName('Hide') : setName('Show');
    }
    return (

    {
    visible ? Hello Everyone :
    }
    toggle()}>{name}

    )

  • @devanshurawat826
    @devanshurawat826 10 месяцев назад

    In my knowledge, there are 4 ways in web of hide-show/toggle :
    CSS ->
    button: hower { display: none; }
    jQuery->
    $this.show(){ }
    Angular->
    ng-show / ng-hide
    React->
    useState hook

  • @vigneshlokeshbabu1686
    @vigneshlokeshbabu1686 3 года назад

    sir thank u so much for helping me with ur awesome and easy way of learning.... this video of urs helped me solve a few things in my react page during the neck of the moment of submission.

  • @karenespinozadelosmonteros4726
    @karenespinozadelosmonteros4726 2 года назад

    I loved, thank u so much, excelent video. I had any problems but this video helped me. Like!

  • @chandreshkumar9046
    @chandreshkumar9046 Год назад

    thanks you sir, I am big fan of your.

  • @ShimantaDas-s3f
    @ShimantaDas-s3f Год назад

    how to get input box value
    for this we need to use ‘e.target.value’ . here ‘e’ is the argument.
    change
    it will calls setData() function.
    const[name,setName]=useState("paul walker");
    function setData(){
    setName("brian o corner");
    }
    we also need to import {useState} from React into current working js.
    when we hit the button, then setData() function get called and calls setName() function from useState.
    show/hide react component
    under App()
    { title ? : null }

    hide


    show
    under return
    const[title,setTitle]=useState();

    function hideP(){
    setTitle(false);
    }
    function showP(){
    setTitle(true);
    }

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx 3 года назад

    god level programeer

  • @aasimameer3294
    @aasimameer3294 2 года назад

    sir u r amazing....Adorable

  • @smis5525
    @smis5525 3 года назад

    very very very nice sir. keep it up. pls make project in reactjs with PHP and Mysql

  • @amansharma5452
    @amansharma5452 3 года назад +3

    How to add smooth transition styling while hiding and showing a div?

  • @sumondatta6595
    @sumondatta6595 2 года назад

    thank you

  • @surendrajat7290
    @surendrajat7290 3 года назад

    very nice video

  • @faizahmed688
    @faizahmed688 2 года назад

    inbuilt function use karte jQuery ka

  • @shorttutorials205
    @shorttutorials205 Год назад

    in jquery we are using jquery inbulid hide and show method, i guess we should not use jquery method in react beacuse this is not a good manner to use jquery hide and show beacuse react have its functionality to show and hide using state so according to me this is not a good idea to use jquery show and hide in readt. Please correct if i am wrong

  • @sultanasim5267
    @sultanasim5267 2 года назад

    hide() method or css('display', 'none')

  • @AjeetYadav-dg1to
    @AjeetYadav-dg1to 2 года назад

    Button ke click pe kisi other div pe class toggle kaise kare as per our need
    want to do something like this below :-
    $(".fab-icon-holder").click(function (e) {
    e.stopPropagation();
    $(".fab-container").toggleClass('crosshow');
    });

  • @muhammadsohail862
    @muhammadsohail862 2 года назад

    Assalamoalaikum Dear SIR, i am thankful to you that you are providing great learning concepts for all developers i have a question how to set up and down arrow show in view

  • @Mr-sr9ie
    @Mr-sr9ie 3 года назад

    Bhai,
    meko sirf child element toggle karna hai wo kaise karna hai.
    Mere pass multiple dropdown option hai
    Aise use karunge to sare dropdown ek saath show/hide honge na .

  • @ravi_pk
    @ravi_pk 2 года назад

    Jquery me function use karte hai

  • @bhanvidudeja9113
    @bhanvidudeja9113 2 года назад

    How can we hide any parent div with the help of CSS?

  • @anuragghimire3735
    @anuragghimire3735 Год назад

    🙏🙏🙏🙏

  • @kodakstudiowebs
    @kodakstudiowebs 4 года назад

    If we want to hide full div or class... what should I do? {getTogm ? 'Toggle show' : null } isme string ki jagah kya set kre?

    • @codestepbystep
      @codestepbystep  4 года назад +2

      String is jgh div lga do aap...

    • @kodakstudiowebs
      @kodakstudiowebs 4 года назад

      @@codestepbystep nai.. if some where page me koi container div h.. use toggle k lie.. kya kre. Ese time pe uske id ko kese toggle kere??

    • @codestepbystep
      @codestepbystep  4 года назад +1

      React me id se toogle nhi krte... aap pure div ko component me rkho, fir usko string ji jgh rkho agr jyada bda div h to,
      Isme jquery ke jiasa nhi hota bhai

    • @kodakstudiowebs
      @kodakstudiowebs 4 года назад +1

      @@codestepbystep ok.. thank you 🙏

    • @rajaasim4474
      @rajaasim4474 2 года назад

      {getTogm && 'Togglee show'}

  • @Codingkite
    @Codingkite 4 года назад +1

    Sir State use Karo na

    • @codestepbystep
      @codestepbystep  4 года назад +1

      Bhai state hi use kri hai 🙂

    • @Codingkite
      @Codingkite 4 года назад +2

      @@codestepbystep constructor vale

    • @codestepbystep
      @codestepbystep  4 года назад

      Wo class component me hota h... ab react me class component kam use gite h bhai

  • @rajendrastore-p5i
    @rajendrastore-p5i 2 года назад

    why use react.usestate not only usestate

  • @RAVIRAJLADHA
    @RAVIRAJLADHA Год назад

    he has not taught useState till now, y r u usng it?

  • @pythonenthusiast9292
    @pythonenthusiast9292 3 года назад

    agar jab bhi mai hide pe click karra hu to button ka naam show pe change karna hai aur show pe click kaeu to uska naam hide me change karna hai..
    to ye mai kaise karunga?

    • @iTapas
      @iTapas 3 года назад

      Instead of toggle simple write {status? "Hide":"Show"}

  • @ganeshshankarpelli3094
    @ganeshshankarpelli3094 Год назад

    let btnText ="show";
    function App() {
    const [status, setStatus] = React.useState(false)
    function BtnName() {
    setStatus(!status)
    if (status===false) {
    btnText="hide";
    } else if (status === true ){
    btnText= "show";
    }
    }
    return (

    {
    status? shravani : null
    }
    {btnText}

    );
    }
    export default App;