Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street.

Investors bought technology shares after the U.S. government opted to temporarily ease off on proposed restrictions on technology sales to Chinese companies.

Japan's Nikkei 225 index added 0.1% to 21,299.02 and the Kospi in South Korea advanced 0.4% to 2,069.27. Hong Kong's Hang Seng gained 0.3% to 27,735.59, and the S&P ASX 200 in Sydney edged 0.1% higher to 6,505.50. The Shanghai Composite index lost 0.2% to 2,900.34. Shares fell in Taiwan and Jakarta but rose Singapore and Thailand.

Investors chat as they monitor stock prices at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

Investors chat as they monitor stock prices at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

Japan reported that its trade surplus dropped 90% from a year earlier in April as a 6% drop in shipments to China bit into its exports. Exports fell 2.4% year-on-year while imports rose more than 6% thanks to higher oil prices.

On Tuesday, the U.S. government's decision to issue a 90-day grace period on controls on technology sales to Huawei, ZTE and other Chinese companies offered a respite from worries over their potential impact.

Though the 90-day delay brightened sentiment, "the reality is that a resumption of the limitations after 90 days would most certainly still affect the global supply chain and hit hard at a touchy issue for China to potentially induce further retaliation," Jingyi Pan of IG said in a commentary.

A man reacts as investor check their stock prices at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

A man reacts as investor check their stock prices at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

The Trump administration's sanctions against Huawei and other Chinese technology companies have begun to bite even though their dimensions remain unclear. U.S. companies such as Qualcomm and Broadcom that supply the Chinese tech powerhouse with computer chips face a drop in sales, and Huawei's smartphone sales could get decimated with the anticipated loss of Google's popular software and services.

The U.S. move escalates trade-war tensions with Beijing, but also risks making China more self-sufficient over time. About one-third of Huawei's suppliers are American chipmakers.

The S&P 500 index rose 0.9% to 2,864.36. The Dow gained 0.8% to 25,877.33.

A woman checks stock prices through her smartphone at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

A woman checks stock prices through her smartphone at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

The technology heavy Nasdaq composite climbed 1.1%, to 7,785.72, erasing a good chunk of Monday's losses. The Russell 2000 index of small companies picked up 1.3%, to 1,545.25.

Intel rose 2.1% and Texas Instruments added 2.2%. Broadcom, which gets about half of its revenue from China, gained 1%. Qualcomm, which gets more than half of its revenue from China, rose 1.5%. Apple rebounded 1.9% after falling a day earlier.

ENERGY: Benchmark U.S. crude slipped lost 58 cents to $62.55 per barrel in electronic trading on the New York Mercantile Exchange. It lost 8 cents on Tuesday to settle at $63.13 per barrel. Brent crude, the international standard, shed 50 cents to $71.68 per barrel.

Investor monitor stock prices at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

Investor monitor stock prices at a brokerage house in Beijing, Wednesday, May 22, 2019. Shares edged in Asia on Wednesday after a rebound in technology stocks helped power an overnight rally on Wall Street. (AP PhotoAndy Wong)

CURRENCIES: The dollar fell to 110.45 Japanese yen from 110.50 yen on Tuesday. The euro weakened to $1.1155 from $1.1161.

AP Business Writers Damien J. Troise and Alex Veiga contributed.