Videos
Facebook introduces Hooks in their 16.8 version and it works with only functional components so in some of the tutorials they have started implementing a new hook API so that's why you found functional components .w3schools have not updated their tutorials for Hook API.
I suggest you to start with HOOK API because it is easy to understand and also there is less memory leak compare to class base components and they solve many issues which was there in class base components.
You can refer below link for hook startup:
https://reactjs.org/docs/hooks-reference.html
You should put the errors here, but I see a big difference between the codes.
The w3school code is using a Class:
class App extends Component {
And you are using a function:
function App() {
Both codes are OK.
So... I need to know how are using the App component. It should be something like this:
import App from './App.js';
ReactDOM.render(
<App />,
document.getElementById('root')
);
If you are doing the same, try to put all your code in condesandbox (https://codesandbox.io/) and share it here!
I used W3Schools to learn the javascript basics and now i'm following the react's tutorial. Do you think that this way is fine or should I use something else to learn that?
(For each lesson i write the most important things on a .txt file and i apply it on a small project)
I see some certification for React by W3 Schools, I dont know if anyone tried and felt it was good.
https://courses.w3schools.com/browse/certifications/courses/react-certification-exam
I just want to try something challenging and this felt like the only one out there.