clauderic / react-sortable-hoc

A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable list✌️
https://clauderic.github.io/react-sortable-hoc/
MIT License
10.77k stars 978 forks source link

fix: change deprecated React.SFC to React.FC #857

Closed ronparkdev closed 7 months ago

ronparkdev commented 1 year ago

React.SFC was deprecated from React 16 version, and React 18 version was completely removed. Therefore, Compile error are occurring in React 18 and typescript environment.

So, I change to React.FC which is proposed way in the official document

related issue : https://github.com/clauderic/react-sortable-hoc/issues/855

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 47ffb7368c1591b7a5ec798fc704c5cb87462712:

Sandbox Source
react-sortable-hoc-starter Configuration