Comments (3)
Yeah, I don't think we need to be that explicit with a same-name example. I agree the current wording does make it sound like a brand new point rather than a reinforcing of what's already been shown. I'll assign this to you 🚀
from curriculum.
Thanks for opening this issue @reda777. That bullet in the lesson is correct - it's just reinforcing the fact that the prop name can be anything and doesn't have to match the name of the function you're passing in. That being said, I can definitely see where the confusion is coming from and that bullet can be worded more clearly. e.g.
The prop name does not have to match the name of the function passed in. You can see we've called the prop
handleClick
instead ofhandleButtonClick
, and we could also have called the propsuperCoolFunction
if we wanted.
Would a change like this make the point clearer?
from curriculum.
Yeah I was confused reading it. The note could be useful if the snippet code included something like handleClick={handleClick}
, but I don't think it's necessary to state if the code already demonstrates that point. If you still want to keep the note, a clearer version like the one you wrote should be fine I think. Thanks for taking the time to reply.
from curriculum.
Related Issues (20)
- Possible copyright violation in Introduction to Git: <Short description of your suggestion> HOT 3
- Rock Paper Scissors: <Third bullet point in the "Setup the project structure" step should be formulated differently> HOT 1
- React: Sandbox links don't work in the second assignment HOT 4
- CSS Units: <Short description of your suggestion> HOT 1
- Ruby On Rails: Capitalization / Formatting issue in Members Only project HOT 3
- getting_hired: fix typo HOT 5
- Ruby On Rails: Leftover Asterisk (*) from the last Pull Request in Members Only HOT 1
- Variables and Operators: Wrong suggestion about declaration with an assignment about returning undefined value. HOT 2
- Variables and Operators: Put note in a note box HOT 2
- React: change npm command to not nest project HOT 2
- Revisiting Rock Paper Scissors: <Short description of your suggestion> HOT 3
- Command Line Basics: Add note in case of missing Desktop folder HOT 2
- HashMap: <Implement examples/tests to test out Hash Map code> HOT 1
- HashMap Data Structure: Clarify what it means for a map to be "75% full" HOT 1
- Int HTML/CSS Form Basics: Use level 4 headings instead of emphasis HOT 2
- The Cascade: <Fix broken URL of additional resource called "Interactive Scrim on the CSS cascade"> HOT 3
- Setting Up A React Environment: Remove mention of eslint-config-prettier HOT 3
- Deployment Lessons Rails/Node Course: Fly.io free allowance are not applicable during free trial HOT 3
- Elements and Tags: <Short description of your suggestion> Malware detection notification HOT 5
- The Cascade: <'The CSS Cascade' link is broken in Additional Resources> HOT 2
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 curriculum.