reactjs
This is a formatted version of Komadori's answer
(https://tinyurl.com/Komadori)
React is a JavaScript library for building user interfaces.
It is maintained by Facebook and a community of
individual developers and companies.
React can be used as a base in the development of single-page
or mobile applications.
0
0
A JS Library that is considered one of the best frameworks/libraries of JS, Thi is Made by Facebook, If u want check out Clever Programmer, the god of React in Youtube
Thank you!
0
0
0
8
import React, { useState, useEffect } from 'react';
function Example() {
const [count, setCount] = useState(0);
// Similaire à componentDidMount et componentDidUpdate : useEffect(() => { // Met à jour le titre du document via l’API du navigateur document.title = `Vous avez cliqué ${count} fois`; });
return (
<div>
<p>Vous avez cliqué {count} fois</p>
<button onClick={() => setCount(count + 1)}>
Cliquez ici
</button>
</div>
);
}
Thank you!
8
0
4.33
6
yarn create react-app my-react-app
Thank you!
6
0
3.67
3
{"coord":{"lon":69.4167,"lat":34.5},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":294.37,"feels_like":293.07,"temp_min":294.37,"temp_max":294.37,"pressure":1008,"humidity":20,"sea_level":1008,"grnd_level":811},"visibility":10000,"wind":{"speed":1.72,"deg":278,"gust":1.88},"clouds":{"all":0},"dt":1624587596,"sys":{"type":1,"id":7381,"country":"AF","sunrise":1624579865,"sunset":1624631919},"timezone":16200,"id":1138957,"name":"Kabul","cod":200}
Thank you!
3
0
3.83
6
{"id":28,"results":[{"id":"533ec651c3a368544800003e","iso_639_1":"en","iso_3166_1":"US","key":"ggX1DPfBLw8","name":"Josh Olson on APOCALYPSE NOW","site":"YouTube","size":720,"type":"Featurette"},{"id":"533ec651c3a368544800003d","iso_639_1":"en","iso_3166_1":"US","key":"CxENJ2LwecY","name":"Apocalypse Now redux - Trailer - HQ","site":"YouTube","size":480,"type":"Trailer"},{"id":"5619ceddc3a3681c28001101","iso_639_1":"en","iso_3166_1":"US","key":"yafLm-ByQWo","name":"Apocalypse Now : Redux - Alternate Trailer","site":"YouTube","size":720,"type":"Trailer"},{"id":"5b960ae80e0a26197302de0e","iso_639_1":"en","iso_3166_1":"US","key":"P-Z2mIKWFcg","name":"Apocalypse Now ≣ 1979 ≣ Trailer","site":"YouTube","size":1080,"type":"Trailer"},{"id":"5ce9507f925141669eb83d14","iso_639_1":"en","iso_3166_1":"US","key":"9l-ViOOFH-s","name":"APOCALYPSE NOW: FINAL CUT - Official Trailer - Dir. by Francis Ford Coppola","site":"YouTube","size":1080,"type":"Trailer"},{"id":"5d1a150aca4f67001ed720d5","iso_639_1":"en","iso_3166_1":"US","key":"gIUIefO_2x0","name":"APOCALYPSE NOW FINAL CUT - 4K Restoration in Theaters 8/15 & on 4K Combo Pack 8/27!","site":"YouTube","size":1080,"type":"Trailer"}]}
Thank you!
6
0
Are there any code examples left?
New code examples in category Other