React - CS50 Beyond 2019

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 74

  • @Matyas45
    @Matyas45 3 ปีที่แล้ว +11

    These CS50 courses are unbeatable, super profound and consequent, seems like Harvard is the best..far the best

  • @saideepkonduri6429
    @saideepkonduri6429 5 ปีที่แล้ว +21

    probably best video ever on React basics, thanks a lot

  • @kennytong1707
    @kennytong1707 4 ปีที่แล้ว +8

    One of the best teacher I have ever seen

  • @javhaasuhochir8126
    @javhaasuhochir8126 2 ปีที่แล้ว +4

    Brian is the best when explaining things

  • @vishnusingh4118
    @vishnusingh4118 5 ปีที่แล้ว +10

    9:22 first react program
    11:37 to 12:47 react prog with props
    49:54 field has a property 'onchange' that responds to a change in the input field..it's much like onclick..you pass in a function, like so:
    All functions that are event handlers can take as an argument their event.
    Then you'll define the function updateResponse like so (crap is the event here),
    udpateResponse (crap)=> {
    this.setState({
    response : crap.target.value });

  • @kevinlin256
    @kevinlin256 5 ปีที่แล้ว +20

    I always love this man. I really need Brian...

  • @senkasim
    @senkasim 6 ปีที่แล้ว +16

    It's a very nice video for React. Thanks a lot, Brian.

  • @javhaasuhochir8126
    @javhaasuhochir8126 2 ปีที่แล้ว +1

    Thank Harvard you really helped me a lot on struggling with React Js, THanks Harvard Thanks

  • @vincentiusherie
    @vincentiusherie 2 ปีที่แล้ว

    Absolutely fantastic! Thank you for sharing this online.

  • @mirknankazmzad8517
    @mirknankazmzad8517 5 ปีที่แล้ว +11

    That is how this course should be lectured

  • @mathematics6199
    @mathematics6199 2 ปีที่แล้ว +1

    Dude this is too good

  • @Melvinn27
    @Melvinn27 3 ปีที่แล้ว +3

    Really good lesson for the basics.

  • @necrodevz
    @necrodevz 5 ปีที่แล้ว +3

    19:00-21:08... belissimo!

  • @kevinlin256
    @kevinlin256 5 ปีที่แล้ว +2

    I can't hear his "Great question" anymore.
    I loved it.

  • @javhaasuhochir8126
    @javhaasuhochir8126 2 ปีที่แล้ว

    best react js video on world

  • @alejandrorodriguezpena9388
    @alejandrorodriguezpena9388 6 หลายเดือนก่อน

    Un gran curso , desde cuba saludos

  • @ilkhomjonkhudoyberdiev2064
    @ilkhomjonkhudoyberdiev2064 4 ปีที่แล้ว +2

    really good video very helpful thanks very much

  • @umarkhan_khan
    @umarkhan_khan 5 ปีที่แล้ว +3

    a perfect crash course.

  • @simple8810
    @simple8810 3 ปีที่แล้ว +1

    Thanks a lot for giving us react course,

  • @not_amanullah
    @not_amanullah 10 หลายเดือนก่อน

    this is helpful ❤

  • @not_amanullah
    @not_amanullah 10 หลายเดือนก่อน

    thanks ❤

  • @lucapiccone3315
    @lucapiccone3315 3 ปีที่แล้ว +1

    Brian is great

  • @cocomjolk
    @cocomjolk 6 ปีที่แล้ว +2

    Great tutorial!! /class

  • @stannis7656
    @stannis7656 3 ปีที่แล้ว +1

    This guys good

  • @adnanfarooq88
    @adnanfarooq88 4 ปีที่แล้ว +5

    Any specific reason for using classes for react rather than functions?

    • @tone2487
      @tone2487 4 ปีที่แล้ว

      idk if anyone was able to answer your question , but at the time of this video classes were the only way that you could use state , and life cycle hooks . Currently functions can now use state .

    • @basiccomputer6954
      @basiccomputer6954 3 ปีที่แล้ว

      Now react also recommended to use function rather than using classes

    • @shilpthapak7823
      @shilpthapak7823 2 ปีที่แล้ว

      Brian is now teaching react with fuctions. Check it out here: th-cam.com/video/jrBhi8wbzPw/w-d-xo.html

    • @basiccomputer6954
      @basiccomputer6954 2 ปีที่แล้ว +1

      @@shilpthapak7823 yes

  • @sambasallah351
    @sambasallah351 6 ปีที่แล้ว +1

    great intro

  • @chikatikah3838
    @chikatikah3838 4 ปีที่แล้ว +2

    Anybody know the link to where the source code examples are at? Thanks in advance.

  • @TonyAK474
    @TonyAK474 3 ปีที่แล้ว +1

    where I can find the source code? didnt find it after research. honestly really nice course!

  • @DistortedV12
    @DistortedV12 6 ปีที่แล้ว

    Go Brian!!

  • @emporyzookin8524
    @emporyzookin8524 2 ปีที่แล้ว

    Is it okay to start React with that

  • @mstam853
    @mstam853 4 ปีที่แล้ว

    not sure we can use forEach() as it returns undefined (I tried it & it didn't work), whereas the map() method returns a new array...

  • @Joe.s2k
    @Joe.s2k 6 ปีที่แล้ว +1

    Hey Brian, when you ReactDOM.render(, document.querySelector('#app')); any better or worse than ReactDOM.render(, document.getElementById('app')); ??

    • @primosoma
      @primosoma 6 ปีที่แล้ว +2

      Hello, reading some discussions about efficiency it seems that getElementById is a little bit more quicker than querySelector. But, considering that this function is executed only once and that modern browsers are very efficient, I think you can use whatever you are confortable with; in most of the cases it doesn't really matter. Probably, these differences can impact on performance if you are quering hundreds of elements per second :)

  • @emanabdelrahem8331
    @emanabdelrahem8331 3 ปีที่แล้ว

    any playlist for this lecture?

  • @burhonbaqoyev9528
    @burhonbaqoyev9528 5 ปีที่แล้ว

    It's very good.

  • @shintanishino720
    @shintanishino720 6 ปีที่แล้ว

    Cool!

  • @samer820
    @samer820 4 ปีที่แล้ว

    how could he not hit any error by missing "this" in his handChange()?
    He had :
    tasks: [...state.tasks, state.input]
    It should be with "this":
    tasks: [...this.state.tasks, this.state.input]

  • @vishnusingh4118
    @vishnusingh4118 5 ปีที่แล้ว

    31:45 this.state is not allowed for efficiency reasons(re-render dom only if necessary)..so you gotta do this.setstate({JS object goes here } )
    37:37 but it's not recommended to change state directly(poor design - it may lead to race conditions)...so instead of passing the object to this.stestate(), we pass a function. (coz this state can take a JSobject describing what the new state should be,as an argument, but can also take a function as an argument) This function takes an old state and returns a new state ..(so in domain range notation, f: old_state-->new_state)

    • @peace8859
      @peace8859 5 ปีที่แล้ว +1

      Vishnu Singh he literally said your first point a minute after timestamp was noted

  • @i5artube
    @i5artube 6 ปีที่แล้ว +3

    Wrong at 1:08:40 . That's not the reason. It's used `className` instead of `class` because that's the conventional name in JavaScript, e.g. `document.getElementById("myid").className`. Also the JavaScript keyword `class` does't conflict with JSX attributes.

    • @Ken-S
      @Ken-S 6 ปีที่แล้ว

      Then why not `document.getElementById("myid").class`?

    • @i5artube
      @i5artube 6 ปีที่แล้ว +1

      @@Ken-S Because it's not a valid method.

    • @Ken-S
      @Ken-S 6 ปีที่แล้ว

      LoL. I don't have any questions.

    • @i5artube
      @i5artube 6 ปีที่แล้ว +1

      @@firstname4337 This answer may help you to understand better www.quora.com/Why-do-I-have-to-use-className-instead-of-class-in-ReactJs-components-done-in-JSX-JSX-is-preprocessed-so-shouldnt-that-conversion-happen-when-JSX-is-converted-to-JavaScript

    • @muhammadazam2337
      @muhammadazam2337 5 ปีที่แล้ว

      class is a keyword in javascript

  • @CASMANWHAT
    @CASMANWHAT 6 ปีที่แล้ว +3

    That piano playing at the start tho.

  • @kumardeepanshu8503
    @kumardeepanshu8503 4 ปีที่แล้ว

    Only one question why didn't he use create-react-app.

    • @omegamon
      @omegamon 4 ปีที่แล้ว +3

      If he had used create-react-app it would have introduced a lot of things all at once - by sticking to just some core concepts he can introduce things one at a time, as opposed to having to explain a lot of auto-generated concepts.
      It's easier to understand things if you don't have to constantly say "we'll go over this later"
      And it's not like you don't see create-react app explained all the time anyway.

  • @sukhmanpreetsingh1525
    @sukhmanpreetsingh1525 2 ปีที่แล้ว

    46:33 (just a note to myself)

  • @codybishop7526
    @codybishop7526 4 ปีที่แล้ว +5

    I feel like React is so unnervingly over-complex. Supposedly it cuts down on what you can do with just vanilla JS, in the same time, but it seems really convoluted and over engineered.

    • @danieldolezal8541
      @danieldolezal8541 4 ปีที่แล้ว +1

      Hi Cody, I had exactly the same feelling when I started with React. I asked myself "Why to complicate my life with learning React when I can use vanilla JS?"
      But as I progressed further with React I found that it makes my life easier and I can write functional apps faster. Another huge advantage of React is that it helps your code remain organized as the app grows. With vanilla JS it is nearly impossible to not get lost in the code as the app grows and gets more complicated.

  • @parthshingari6082
    @parthshingari6082 3 ปีที่แล้ว

    Is it beginner friendly?

    • @tellahsage6477
      @tellahsage6477 3 ปีที่แล้ว +1

      Yeah, just assumes some familiarity with the basics of html and javascript

  • @virajmurab1473
    @virajmurab1473 2 ปีที่แล้ว

    can somebody provide lecture notes/slides

  • @nainabahadur4812
    @nainabahadur4812 6 ปีที่แล้ว +3

    46:39
    Uncontrollable laugh
    Instant laugh

  • @yuanmiau
    @yuanmiau 6 ปีที่แล้ว +1

    Hundred!

  • @toulasantha
    @toulasantha 2 ปีที่แล้ว

    Would have preferred without the questions..

  • @mikecmw8492
    @mikecmw8492 6 ปีที่แล้ว +1

    const time foo()

  • @erastophilip834
    @erastophilip834 2 ปีที่แล้ว

    Seems like Havard is far away more better

  • @usmancodes5633
    @usmancodes5633 6 ปีที่แล้ว +3

    1st

  • @dixitrajpura
    @dixitrajpura 6 ปีที่แล้ว +1

    Second

  • @ProUserTube
    @ProUserTube 6 ปีที่แล้ว +1

    First

  • @JayMikB
    @JayMikB 6 ปีที่แล้ว +1

    Fourth

  • @jackysrivastava749
    @jackysrivastava749 6 ปีที่แล้ว

    fifth :P

  • @alfonsozendejaslopez727
    @alfonsozendejaslopez727 6 ปีที่แล้ว +1

    Third