iansinnott / react-string-replace

A simple way to safely do string replacement with React components
MIT License
652 stars 56 forks source link

ReactNodeArray is deprecated #80

Closed johnbonds closed 1 year ago

johnbonds commented 2 years ago

per react: /**

Possible to refactor?

DerGoogler commented 2 years ago

per react: /* @deprecated Use either ReactNode[] if you need an array or Iterable<ReactNode> if its passed to a host component. */

Possible to refactor?

You can use (<div>Hi!</div>) as React.Node[]

But I fixed that in my PR #81

iansinnott commented 1 year ago

88