Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateless function components cannot have refs. #6937

Closed
Saifu0 opened this issue Sep 26, 2019 · 1 comment
Closed

Stateless function components cannot have refs. #6937

Saifu0 opened this issue Sep 26, 2019 · 1 comment

Comments

@Saifu0
Copy link

Saifu0 commented Sep 26, 2019

After applying Route and Link I am facing this problem.
Stateless function components cannot have refs.
Screenshot from 2019-09-26 21-43-49

▶ 22 stack frames were collapsed.
./src/index.js
src/index.js:7
4 | import App from './App';
5 | import registerServiceWorker from './registerServiceWorker';
6 |

7 | ReactDOM.render( , document.getElementById( 'root' ) );
8 | registerServiceWorker();
9 |
10 |

@timdorr
Copy link
Member

timdorr commented Sep 26, 2019

Duplicate of #6934

@timdorr timdorr marked this as a duplicate of #6934 Sep 26, 2019
@timdorr timdorr closed this as completed Sep 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants