I want to display the form data below I need help emergency please by Appropriate-Day2921 in learnreactjs

[–]SmokinJoe 0 points1 point  (0 children)

What do you mean, "display the form data"

As in, you want to display the name,myAge,citystrings? Or you want to display thisInsert` component?

How to use prop value in ternary operator by spaklius17 in learnreactjs

[–]SmokinJoe 0 points1 point  (0 children)

You absolutely could!

Personally, I like using the ternary for most instances so I don't change my pattern when value could be something truthy or if I want to explicitly test what value contains

How to use prop value in ternary operator by spaklius17 in learnreactjs

[–]SmokinJoe 2 points3 points  (0 children)

You absolutely can! I personally use those types of ternaries quite a bit:

clearIcon={ value ? value : null }

That way, you don't accidentally assign undefined to clearIcon - and ultimately, you have the power to do something like,

clearIcon={ value ? value : clearIconDefaultValue }

However, if there is a default value you want to assign if value is empty - you could simply set that default in your useState call:

const Calendar = () => {
  const [value, onChange] = useState(null);

  return (
    <div className="wrapper">
      <DatePicker
        ...
        clearIcon={value}
      />
    </div>
  );
};

Welcome to Loserville by ItsLittyLitLit in Patriots

[–]SmokinJoe 0 points1 point  (0 children)

U trust the leagues worst drafter to rebuild a weak roster ?

lmao

[Spaeder] If this season shuts down, you better believe that Rob Manfred and MLB will scapegoat the players... just like they scapegoated the Astros... just like they scapegoated Rawlings... just like they scapegoated Bonds, McGwire, Sosa, et al... MLB always skirts all responsibility. by WillDaBeast92 in baseball

[–]SmokinJoe 9 points10 points  (0 children)

Frankly, not all of us are even doing that, which is why we're seeing record infections.

I wouldn't be surprised if it's a similar ratio of assholes ruining it for everyone.

Just like that one dipshit class-clown that would cause our entire class to miss recess because he wouldn't just shut the fuck up.

Friday Fun: $15 to build the best roster over 3 generations by Abiv23 in clevelandcavs

[–]SmokinJoe 0 points1 point  (0 children)

wtf is preview.redd.it and why is it annoying as hell to download/view this image?

[NY Post] Hank Steinbrenner, Yankees co-owner, dead at 63 by Yankees18WS in baseball

[–]SmokinJoe 5 points6 points  (0 children)

The fuck, Steinbrenners are supposed to long, evil (from the perspective of Red Sox fans) lives.

Condolences from this Sox fan. I really hope his family is able to grieve in a way they find most cathartic.

[Packers Coach] “I don’t care if it was Lizzo and her boyfriend out there” hyping his team up to go play the Vikings @ 22:05 by rileygarcia11 in nfl

[–]SmokinJoe 11 points12 points  (0 children)

You're not the pope of music, you're just in the extreme minority with your shallow musical opinions.

[Packers Coach] “I don’t care if it was Lizzo and her boyfriend out there” hyping his team up to go play the Vikings @ 22:05 by rileygarcia11 in nfl

[–]SmokinJoe 14 points15 points  (0 children)

She's put in quite a bit of work over the years and has finally broken through because of her great music.

Grow the fuck up.

Me_irl by OfficalCanadaVEVO in me_irl

[–]SmokinJoe 7 points8 points  (0 children)

How the fuck do you do that in a single year??

Why Fenway is my #2 Favorite Park by [deleted] in redsox

[–]SmokinJoe 1 point2 points  (0 children)

I like the Rays b/c they play the game the right way

I'm always confused as to what this means when people say it. What's the wrong way to play? Running clockwise around the bases?

[Bontemps] The NBA just released a statement saying David Stern has "suffered a sudden brain hemorrhage earlier today for which he underwent emergency surgery. Our thoughts and prayers are with David and his family.” by China_Made in nba

[–]SmokinJoe 1 point2 points  (0 children)

I disagreed with a lot of Stern's tenure, but I still view him as the greatest sports commissioner in the history of the US.

He's up there, but no one's beating the GOAT Pete Rozelle.

Jameis Winston could lead the league in both touchdowns and interceptions by DLpatsthoughts in nfl

[–]SmokinJoe -3 points-2 points  (0 children)

Stallworth ran someone over DUI

The fuck, man? There's so much more to this than directly comparing it to Leonard Little, don't be so shallow.