useOptimisticState -> useOptimistic (#26772)

Summary:
Drop the "state". Just "useOptimistic". It's cleaner.

This is still an experimental API. May not be the final name.

DiffTrain build for commit https://github.com/facebook/react/commit/b7972822b5887d05ae772ef757a453265b4b7aec.

Changelog: [Internal]:
<< DO NOT EDIT BELOW THIS LINE >>

Reviewed By: sammy-SC

Differential Revision: D45537245

Pulled By: tyao1

fbshipit-source-id: e31f77c4a55e8931c9671d13fc43d6ff32e25dbb
This commit is contained in:
acdlite
2023-05-05 16:36:15 -07:00
committed by Facebook GitHub Bot
parent 57c9cd19b6
commit ba39d87113
@@ -1 +1 @@
388686f291afb2362fdc813c49f75b4132bc1314
b7972822b5887d05ae772ef757a453265b4b7aec