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

CRA typescript template with react-redux #1707

Closed
Onlylonger opened this issue Apr 1, 2021 · 2 comments
Closed

CRA typescript template with react-redux #1707

Onlylonger opened this issue Apr 1, 2021 · 2 comments

Comments

@Onlylonger
Copy link

Onlylonger commented Apr 1, 2021

What is the current behavior?

image

image

repo: https://github.com/Onlylonger/cra-redux-ts

Layout component used by App; but show above TypeScript error;

_ need help

@phryneas
Copy link
Member

phryneas commented Apr 1, 2021

You need to add children: React.ReactNode; to your LayoutProps if you want to pass children into them.
But this REALLY is not a react-redux question and this is a bug tracker, not a help forum. Please use more appropriate channels next time.

Also see https://github.com/typescript-cheatsheets/react

@phryneas phryneas closed this as completed Apr 1, 2021
@Onlylonger
Copy link
Author

got it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants