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

“Componentizing our React app”: Error in Passing DATA as a prop, #55

Closed
Daslaw opened this issue Jan 11, 2023 · 1 comment · Fixed by mdn/content#23967
Closed

“Componentizing our React app”: Error in Passing DATA as a prop, #55

Daslaw opened this issue Jan 11, 2023 · 1 comment · Fixed by mdn/content#23967
Labels
help wanted If you know something about this topic, we would love your help!

Comments

@Daslaw
Copy link

Daslaw commented Jan 11, 2023

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_components

What specific section or headline is this issue about?

Componentizing our React app in the MDN documentation

What information was incorrect, unhelpful, or incomplete?

Where will pass DATA as a prop, we pass DATA as a prop, called tasks. The final line of src/index.js read like this:

ReactDOM.render(\<App tasks={DATA} />, document.getElementById("root"));

What did you expect to see?

Instead of this

const root = ReactDOM.createRoot(document.getElementById('root'));
root. Render(
  <React.StrictMode>
    <App tasks={DATA} />
  </React.StrictMode>
);

In the React v18.2.0.

Do you have any supporting links, references, or citations?

https://reactjs.org/docs/conditional-rendering.html

Do you have anything more you want to share?

No response

@Daslaw Daslaw added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 11, 2023
@sideshowbarker sideshowbarker changed the title Error in Passing DATA as a prop, “Componentizing our React app”: Error in Passing DATA as a prop, Jan 12, 2023
@sideshowbarker sideshowbarker added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 12, 2023
@bsmth bsmth transferred this issue from mdn/content Jan 12, 2023
@github-actions
Copy link

It looks like this is your first issue. Welcome! 👋
One of the project maintainers will be with you as soon as possible. We
appreciate your patience. To safeguard the health of the project, please
take a moment to read our code of conduct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants