learn-co-curriculum / react-events-in-detail-lab Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello! I wanted to bring awareness to this lab. I was able to pass the tests that were written for the lab but I had errors in the browser when I actually used the the buttons(to click them) and see their action.
I also noticed that the two functions onReceiveCoordinates
and onDelayedClick
are part of the tests but nowhere in my code did I define these functions. I assume this may be why I am receiving browser errors overall.
Since passing the tests I decided to move on because I couldn't linger any longer on a lab. I did want to make sure this was looked at though. I provided the browser errors I received for both functions and my passing tests in the console.
Happy coding
Malind
passed all tests (running both learn & npm test) - submitted, but still showing tests failed
This is very unclear in the readme (as are many other things), but onReceiveCoordinates and onDelayedClick are functions that are defined in the test suite and passed in as props when the tests are run. Students do not need to define these as props in their component files, and this should be made clear in the readme, especially given how uninformative the error messages in the tests are.
this.props.onReceiveCoordinates([event.clientX, event.clientY]);
Just wondering, When did we learn about cllientX or where are we to perceive to get this information from? Seems to be a lab or something missing to explain this.
Two Flatiron TC just confirmed this lab is not working properly. Student is using Google Chrome. The React rendering is not visible despite the compiling correctly.
https://learning.flatironschool.com/courses/1883/assignments/125694?module_item_id=259619
All tests are marked as passed but terminal stalls thereby no posting a completed lab.
No response
No response
Honestly, I don't feel I'm learning how to use React! And it's very frustrating.
I completed the lab, but have no understanding of what the component is supposed to do! Especially when I can't test the app in the browser.
I feel I'm executing isolated tasked without properly understanding how they work in the big picture.
I've decided to take a React course on Udemy and then come back to complete these lessons and labs. Hopefully then I'll learn how to use React properly...
I apologize for all the complains but after knowing and experiencing how you guys can deliver amazing curriculum (as was the case with Ruby, Rails, even the JavaScript track) this track is really disappointing...
The delayedButton instruction are not clear, and with limited test output, are very difficult to translate into the desired outcome. There is also no solution present.
since this is brand new stuff i'm (and most people) are learning at this point, it would be helpful to see the code that we are writing render in the browser.
Starting with this react lab, It appears the components you create don't render in the browser and i'm not sure if thats a sign of things to come in future labs. The visual rendition and ability to console log stuff etc is important when testing to see if things work. Not having that ability is really not helpful - its kinda like driving a car but not being able to see through the windshield.
the wording for coordinates button #2 is very confusing. The words "takes in" makes it sound like it should be entered as an argument to a method.
handleClick(event) {
event.persist();
setTimeout(() => {
this.props.onDelayedClick(event);
}, this.props.delay);
}
but in docs for setTimeout this is how this lab would be solved but it's failing.
handleClick(event) {
event.persist();
setTimeout(function() {
this.props.onDelayedClick(event);
}, this.props.delay);
}
however $learn submit is working correctly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.