When you look at Tuesday's market action, it's clear what matters most, Jim Cramer told his Mad Money viewers. No, it's not earnings, or the Federal Reserve. It's China. Last night's calming words from Chinese President Xi Jinping took the market right back to 2017, before the words "tariff" and "trade war" loomed in the investing conversation.

Xi's comments on a more open China sent shares of Boeing (BA) and Caterpillar (CAT) up 3.8% and 3.5% while Apple (AAPL) , an Action Alerts PLUS holding, rose by 1.8%.

Beyond China, the markets also rewarded Facebook (FB) with a gain of 4.5% as CEO Mark Zuckerberg answered questions before Congress in a coherent and respectful manner. Facebook allowed the other FANG stocks to rally, with Amazon (AMZN) and Netflix (NFLX) both ending the day higher, along with most of Cramer's "cloud kings" like Workday (WDAY) , up 2.6%, and Red Hat (RHT) jumping 3.5%.

Cramer reminded viewers that earnings season kicks off on Friday and if things remain calm in Washington, those earnings could once again matter to the markets.

But what should investors do with the stocks of Facebook, Amazon and Tesla (TSLA) , three market darlings that fell out of favor this month? Cramer weighed in with his opinions.

Cramer said President Trump should fire whoever is giving him the misinformation about Amazon. The company does indeed pay taxes, is a profit center for the U.S. Postal Service, and gives mom-and-pop retailers a global platform on which to sell their wares.

That makes the stock a buy in Cramer's book, especially given that there are limited ways Trump could hurt the company even if he wanted to.

Then there's Tesla, which suffered a one-two punch of a fatal collision involving the company's autopilot feature, followed by questions about the company's finances. Cramer said this stock will be slammed hard if the company does need to raise additional money, something that CEO Elon Musk says is not going to happen. But that makes owning Tesla too risky in Cramer's eyes, even if he, like many, adores the company's products.

Finally there's Facebook, which has been in the hot seat ever since data from millions of users fell into the hands of a third party. Cramer said the stock is a bargain at 22 times earnings with a 26% growth rate, but investors shouldn't be quick to buy in if they can't handle the scrutiny. If there are any additional data breaches of privacy concerns at Facebook, the world will not take it well.

Over on Real Money, Cramer talks about how to trade the highly unlikely deal between Sprint (S) and T-Mobile (TMUS) . Get more of his insights with a free trial subscription to Real Money.

Remember Why We Invest 

With all of the hoopla coming out of Washington, Cramer said, it's easy to take your eyes off the prize. But investors should remember that investing is still about picking the stocks of winning companies that can outperform the markets.

One of those stocks is Proofpoint (PFPT) , which has soared 35.9% in 2018 as cybersecurity remains as hot as ever. Cramer was also bullish on Nvidia (NVDA) , which received an analyst upgrade today, and Netflix, which has seen analysts raising their price targets ahead of the company's earnings report.

Other stocks receiving some love from the analysts included Ulta Beauty (ULTA) , which popped 4.2% today on a positive survey of teen shoppers. ExxonMobil (XOM) also rose today, by 2.9%, on a positive analyst note, as did Paypal (PYPL) .

All of these stocks remind us why we invest, Cramer concluded, and they should be bought on any weakness.

In today's Daily Rundown, Cramer provides more thoughts and analysis on China President Xi's speech, Zuckerberg's  testimony, Nvidia and the market. Find out what Cramer and the AAP team are telling their investment club members and get in on the conversation with a free trial subscription to Action Alerts PLUS.

Off the Charts: Oil Companies

In the "Off The Charts" segment, Cramer checked in with colleague Bob Lang over the direction of the energy stocks.

Lang looked at a daily chart of Anadarko (APC) and Conoco Phillips (COP) , noting that Anadarko has been making higher highs and lows on strong volume, with a bullish MACD momentum indicator. Conoco has made a "W" shaped bottom with a bullish Chaikin money flow, signaling institutional buying. Lang and Cramer were fans of both names.

Turning to alternative energy, Lang looked at First Solar (FSLR) and SolarEdge (SEDG) , saying that both names have been consolidating gains and appear poised to resume higher.

For a more detailed technical analysis and a look at the charts, read Oil Companies Show Signs of Strength: Cramer's 'Off The Charts'

Lightning Round

In the Lightning Round, Cramer was bullish on Paychex (PAYX) , Martin Marietta Materials (MLM) and XPO Logistics (XPO) .

Cramer was bearish on 3M (MMM) , Fitbit (FIT) and Granite Construction (GVA) .

Search Jim Cramer's "Mad Money" trading recommendations using our exclusive "Mad Money" Stock Screener.

To watch replays of Cramer's video segments, visit the Mad Money page on CNBC.

To sign up for Jim Cramer's free Booyah! newsletter with all of his latest articles and videos please click here.

Watch all of Jim Cramer's full NYSE live shows right here:

At the time of publication, Cramer's Action Alerts PLUS had a position in NVDA, FB, AAPL. AMZN, PYPL, MMM.

More from Jim Cramer

Regions Financial, Edwards Lifesciences: 'Mad Money' Lightning Round

Regions Financial, Edwards Lifesciences: 'Mad Money' Lightning Round

First Horizon National: Cramer's Top Takeaways

First Horizon National: Cramer's Top Takeaways

Waste Management: Cramer's Top Takeaways

Waste Management: Cramer's Top Takeaways

Jim Cramer: Will Apple or Amazon Become the World's First Trillion Dollar Stock?

Jim Cramer: Will Apple or Amazon Become the World's First Trillion Dollar Stock?

Not Thankful for Fridays: Cramer's 'Mad Money' Recap (Friday 4/20/18)

Not Thankful for Fridays: Cramer's 'Mad Money' Recap (Friday 4/20/18)