Oleksandr Fediashov
Oleksandr Fediashov
This would be great 🔥
`Tab` will receive the breaking refactor soon. It will standartize API and remove `render()` fully. This is one of pre `v1` that should be done.
Summary: - `React.forwardRef` is only a solution. All components should forward refs properly - `Ref` component should removed and deprecated
https://github.com/Semantic-Org/Semantic-UI-React/issues/3915#issuecomment-665188625 > @levithomason should we update the docs to mention that since we have a full major version release that we want to stick to semantic versioning while in maintenance?...
@mxschmitt BTW, for the original issue. `Ref` component can do what you want: ```jsx ``` https://codesandbox.io/s/semantic-ui-react-refs-issue-u7zpv?file=/src/index.js
@mxschmitt I will keep this issue opened for tracking work related to `React.forwardRef()` changes as the huge amount work should be done 🐤
``` "version": "17.0.0-alpha.0", ``` https://github.com/facebook/react/blob/2704bb5374e52ed548db96df2d975dae42158dfb/packages/react/package.json#L7 This is a good motivation for changes. Going to start there soon.
FYI: this #4039 PR restores docs for `Ref` component and clarifies when it should be used.
Small update there. SUIR 2.0.0 was released yesterday and I started to work on this item. I will stage a v3 branch soon. - [x] do not use `.state()` in...
@YuriFontella ```tsx const {register} = useForm () ``` Should work for your case