Skip to content

MatchOptionMemoized

Memoized version of MatchOption component. Both [Match] and [Option] are wrapped with React.memo, preventing re-renders when their props have not changed. Prefer this over MatchOption in performance-sensitive trees where the parent re-renders frequently.

Demo

INFO

Memoized implementation of MatchOption component.

Please visit MatchOption component example to see how it works.

Released under the MIT License.