Skip to content

Commit 8e378f3

Browse files
committed
Add raw.React.memo
1 parent 819dafd commit 8e378f3

File tree

1 file changed

+4
-0
lines changed
  • core/src/main/scala/japgolly/scalajs/react/raw

1 file changed

+4
-0
lines changed

core/src/main/scala/japgolly/scalajs/react/raw/React.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,12 @@ trait React extends js.Object {
207207

208208
final def forwardRef[P <: js.Object, R](f: js.Function2[P with PropsWithChildren, ForwardedRef[R], Node]): ForwardRefComponent[P, R] = js.native
209209

210+
/** @since 16.6.0 */
210211
final def `lazy`[P <: js.Object](f: js.Function0[js.Promise[LazyResult[P]]]): Lazy[P] = js.native
211212

213+
/** @since 16.6.0 */
214+
final def memo[P <: js.Object, A](f: js.Function1[P, A], areEqual: js.Function2[P, P, Boolean] = js.native): js.Function1[P, A] = js.native
215+
212216
final val version: String = js.native
213217

214218
/** React.Children provides utilities for dealing with the this.props.children opaque data structure. */

0 commit comments

Comments
 (0)