Comments (2)
Hello!
You could fix it by adding the login={login} property under the RepoMenu component in the UserRepositories.js file like shown below.
I hope this helps someone learning react!
UserRepositories.js:
import React from 'react';
import { Fetch } from './Fetch';
import RepoMenu from './RepoMenu';
export function UserRepositories({ login, selectedRepo, onSelect = f => f }) {
return (
<Fetch
uri={`https://api.github.com/users/${login}/repos`}
renderSuccess={({ data }) => (
<RepoMenu
repositories={data}
login={login}
selectedRepo={selectedRepo}
onSelect={onSelect}
/>
)}
/>
);
}
from learning-react.
Thanks @martha-softwaredeveloper this worked for me.
My <RepoMenu>
was missing the login
prop.
from learning-react.
Related Issues (20)
- Invalid links (inactive)
- Ch8 - Parallel requests files HOT 9
- Missing links in Chapter 10 HOT 2
- Chapter 3 - Compose function
- Ch9 p202 and p203
- Chapter 8 Fetch Component HOT 1
- [Book] Chapter 3 - page 55 - missing brackets in prependZero function
- Chap 8: Incorporating React Markdown
- Chapter 5 code does not work for React18
- chapter 8: repository menu carousel
- Chapter 4 / items is not defined HOT 2
- Missing `await` in async example. HOT 3
- Minor inconsistency in chapter 06 file name HOT 1
- useEffect Sample with new react version misbehaves HOT 2
- Ch 2 Async Snippet Returns Undefined HOT 3
- No 'first-edition' branch found HOT 2
- Running Example of Color Organizer download HOT 1
- Ch4 - 01-components.html - div id name
- CH 12- invalid links(inactive)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learning-react.