Files
react-native/packages/react-native/Libraries
sebmarkbage a89b572768 Allow an action provide a custom set of props to use for progressive enhancement (#26749)
Summary:
Stacked on top of #26735.

This allows a framework to add a `$$FORM_ACTION` property to a function.
This lets the framework return a set of props to use in place of the
function but only during SSR. Effectively, this lets you implement
progressive enhancement of form actions using some other way instead of
relying on the replay feature.

This will be used by RSC on Server References automatically by
convention in a follow up, but this mechanism can also be used by other
frameworks/libraries.

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

Changelog: [Internal]

<< DO NOT EDIT BELOW THIS LINE >>

Reviewed By: sammy-SC

Differential Revision: D45454355

Pulled By: tyao1

fbshipit-source-id: 4b4b65c77ecbc113a79e51e4aff97b2e3b88c31a
2023-05-04 14:22:04 -07:00
..
2023-03-19 16:47:22 -07:00