taniarascia / comments

Comments
7 stars 0 forks source link

getting-started-with-react/ #7

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

React Tutorial: An Overview and Walkthrough | Tania Rascia

I've been hearing about React since I first started learning JavaScript, but I'll admit I took one look at it and it scared me. I saw what…

https://www.taniarascia.com/getting-started-with-react/

silvanet commented 3 years ago

Hey folks, @taniarascia has tons of awesome articles, guides, 🀟 tutorials, totally free to learn from. I learn from her every single day. Everybody, buy her some coffee! β˜•οΈ

JavierTobar commented 3 years ago

This was very well written, nice job Tania

emazack commented 3 years ago

Thank you Tania. Just one thing. From "State" on it become more difficult to follow. I had to come back several time to understand. Is not clear for example why from a certain point on, the classeName became "container" and not more "App"

MunezeroBlaise commented 3 years ago

thanks for your help

JohnJunJi commented 3 years ago

Tania 's tutorials writing is the best. I'm NOT exaggerating. Nowadays, the internet is filled with too many craps that waste others' time. Thanks to Tania and a few others like her, they made learning a lot easier!

jcbeck37 commented 3 years ago

My gh-pages branch is being created in my react-tutorial repo. However, it is just publishing the /public/ folder which is a generic React App; not the one we've built and compiled. Is there a step missing to point to the compiled app?

TheRealBenForce commented 3 years ago

You should have deleted Dee. She looks like a bird.

Emzzy123 commented 3 years ago

Thank you so much for this tutorial.....Helped alot

LuckyArthas commented 3 years ago

Thanks. Cristal Clear.

renyuns commented 3 years ago

πŸ€™πŸ»πŸ€™πŸ»πŸ€™πŸ»

LuckyArthas commented 3 years ago

Hi

On Thu, Apr 1, 2021 at 6:21 PM Ren Yun @.***> wrote:

πŸ€™πŸ»πŸ€™πŸ»πŸ€™πŸ»

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/taniarascia/comments/issues/7#issuecomment-811981802, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS3C5AYYL3NGRVP2AN3MBRLTGSFQLANCNFSM4PVUQ6TA .

lsdyi commented 3 years ago

Hello Tania!!!! thanks for having this excellent tutorial for people who are very new in react like me , but I'm wondering why we should pull data in after componentDidMount. Is there any problems as we get the data before inserting the component to the DOM ??? Appreciated so much!!!

rraj91091 commented 3 years ago

Beautiful guide. Went through a beginner's course on EdX and got lost and then came here. This guide here really explains everything step-by-step that even someone like me who is new to JS and front-end development can really follow through till the end. Thank you Miss Tania :pray:

SamuelOkoroShow commented 3 years ago

I didn't know that the wikipedia api was open like that. Very similar to github.

knowltonGitHub commented 3 years ago

Can you help - or point me to some help - for this error:

Error: Package exports for 'C:\react-tutorial\node_modules\postcss-safe-parser\node_modules\postcss' do not define a valid '.' target at resolveExportsTarget (internal/modules/cjs/loader.js:460:13) at resolveExports (internal/modules/cjs/loader.js:393:16) at Function.Module._findPath (internal/modules/cjs/loader.js:492:20) at Function.Module._resolveFilename (internal/modules/cjs/loader.js:787:27) at Function.Module._load (internal/modules/cjs/loader.js:693:27) at Module.require (internal/modules/cjs/loader.js:864:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (C:\react-tutorial\node_modules\postcss-safe-parser\lib\safe-parse.js:1:17) at Module._compile (internal/modules/cjs/loader.js:971:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10) { code: 'MODULE_NOT_FOUND' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-tutorial@0.1.0 start: react-scripts start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-tutorial@0.1.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ENDER\AppData\Roaming\npm-cache_logs\2021-05-16T16_32_33_634Z-debug.log

diegomouradev commented 3 years ago

Thank you! I was hating React until I came across your post. Now I understand state, props and components better and I feel I can continue my learning journey!

knowltonGitHub commented 3 years ago

That's great!

On Tue, May 25, 2021 at 1:58 AM Diego Moura @.***> wrote:

Thank you! I was hating React until I came across your post. Now I understand state, props and components better and I feel I can continue my learning journey!

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/taniarascia/comments/issues/7#issuecomment-847641824, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGN4RMYDKBEMVM3YTRFDZQ3TPNKBBANCNFSM4PVUQ6TA .

techxpert-mohit commented 3 years ago

I have been learning react from video sessions but the concepts were not clear, hence I was not that much confident to work on my project. When I read this article I am simply amazed with the approach of teaching, so simple and clear. Definitely this is an amazing stuff to start with React and I have kept this page as a bookmark. Really liked the content...

eransevil commented 3 years ago

Thank you very much !

kkuzmov commented 3 years ago

Thank you, Tania! Great article for React beginners!

Raaseem commented 3 years ago

Thanks Tania .it was great

wudixiaoyu008 commented 3 years ago

Thank you so much Tania, this is the best react tutorial for beginners!

liuyx001 commented 3 years ago

Thank you very much Tania. it is very helpful for beginners

diazsasak commented 3 years ago

Thank you Tania, very helpful

myejin commented 3 years ago

Thank you very much Tania!!

thenewforktimes commented 3 years ago

Hello React Friends <3 I've been stuck on refactoring this tutorial without Class based components, and with the React Hooks that have been released since this went live. When I fire off my delete button to remove my least favorite character from the show, I don't get any compilation errors, but I get this – Error: Invalid hook call. Hooks can only be called inside of the body of a function component. I'll CC my app.js and table.js files below, thank you for any insight and learnings that will help me get unstuck.

import React, { useState } from "react"; import Table from "./Table";

const App = () => { const characters = [ { name: "Charlie", job: "Janitor", }, { name: "Mac", job: "Bouncer", }, { name: "Dee", job: "Aspring actress", }, { name: "Dennis", job: "Bartender", }, ];

const DeleteCharacter = (index) => { const [characterData, deleteCharacter] = useState(characters); deleteCharacter({ characters: characterData.filter((character, i) => { return i !== index; }), }); }; return (

); }; export default App; const TableHeader = () => { return (

); };

const TableBody = (props) => { const rows = props.characterData.map((row, index) => { return (

);

}); return

{rows}; };

const Table = (props) => { const { characterData, deleteCharacter } = props; return (

Name Job Remove
{row.name} {row.job}

); }; export default Table;

reposman33 commented 3 years ago

Nice article! About the deployment to github pages: is running npm run build before npm run deploy not superfluous since the predeploy hook already runs npm run build?

MestreALMO commented 3 years ago

This is a pretty good tutorial! good job and thank you for it! 😁

Tran-Van-Bong-95 commented 3 years ago

how to know App.js and Form.js have their own states ? because I still don't understand "since it turns out that the only components having their own states in our project are App and Form," in the article ?

NgoranA commented 3 years ago

@ thenewforktimes Remove your useState() hook from the delete function! It should be placed right in the App component

youssef-aitali commented 3 years ago

Great Overview for React foundations! Thanks Tania.

maendoza commented 3 years ago

Thank you, very nice tutorial

videvelop commented 3 years ago

Thank you! you saved lot of time for me!

aarontgrogg commented 3 years ago

Hey there, truly impressive!

Quick note: In the "Submitting Form Data" section, everything worked fine, but when I clicked "Submit", I briefly saw my new entry, but then the page refreshed...

Solved by passing the event into the submitForm method, then using the classic event.preventDefault();. Is there a better version of this?

Thanks again!

KutanaDev commented 3 years ago

Thank you for creating this tutorial - I think it is really excellent. There is a tiny typo: Aspring actress

Gozde027 commented 3 years ago

Great tutorial! Thanks

tractortoby commented 3 years ago

Thanks Tania. If you get an error message like me after npm run deploy:Β Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option), you probably forget git remote add origin https://github.com/yourname/project and git push --set-upstream origin master after creating new repository.

Kaunaj commented 3 years ago

Thanks for the easy-to-follow tutorial with clear explanations. Really good for people at all levels looking to get their feet wet in React. I followed along and created my own version of the app, adding very basic checks and edit functionality. For anyone interested, here is the demo: https://kaunaj.github.io/first-react-app/

t4selva commented 2 years ago

Today, Many React js developers are not using Class based components, including me, they are using Functional based components. on the other side, React js is a fully js library. Its very hard to scale up big projects. So NEXT.JS is very popular now. I am also using next js ( React Framework ).

dev-debug commented 2 years ago

... is javaScript spread operator. I will try to explain the spread operator with the following example.

    const citrusFruits = ['orange', 'lime', 'mandarin'] 
    const tropicalFruits = ['mango', 'banana']
    const allFruits = [...citrusFruits, ...tropicalFruits] // using  ... operator to copy citrusFruits & tropicalFruits into allFruits.
    console.log(allFruits) // o/p: ['orange', 'lime', 'mandarin', 'mango', 'banana']

Why do I get a "Parsing error: Identifier 'TableHeader' has already been declared in the javascript spread object. I am new to react

kfusilier commented 2 years ago

About halfway through you stop showing what the whole page should look like so the content of the changes is lost on a newbie. Can't get past the adding delete button section, it's unclear what needs to stay and go. I've tried it 5 different ways and they all show errors. Update this tutorial if it's going to be linked on the react docs please!

thaitina5 commented 2 years ago

Hi Tania, i'm finished at "Submitting Form Data" step but after i pressed Submit button nothing appear in Table. I did checked again handleChange() method, it still works. Any ideas why i fail? Thanks

julesrufo26 commented 2 years ago

Thank you Tania :)

rhammell commented 2 years ago

Thanks for writing this, its very helpful!

manuellaines commented 2 years ago

hello Tania thank you for your explanations they are very interesting you really touch the basics and suddenly it helps us a lot we beginners

gaetano44 commented 2 years ago

Thanks for posting this! Very helpful.

101is5 commented 2 years ago

Greetings! This isn't a question but rather a comment itself, about using <input> instead of <button> on the Form component. I wanted to experiment replacing the tag -for submitting the new character- with a

101is5 commented 2 years ago

Greetings! This isn't a question but rather a comment itself, about using instead of

yandeng1300547005 commented 2 years ago

good 牛逼 ζˆ‘ε­¦εˆ°δΊ†

Jiec-er commented 2 years ago

Thank you Tania! it's helpful for me!