简体   繁体   中英

how can I fix white screen?

There is no errors it is just a white screen It all appeared after adding props on function map

enter image description here enter image description here

The props names have to be changed to what you've specified whilst calling the app component.

For example:

Whilst calling the Profile component you have to use:

<Profile posts={props.posts} />

The name of that particular prop is posts not postData when you provide it to the App component. The same goes for all the other components that you've used with the props for App.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM