ibraheemz / product-hunt Goto Github PK
View Code? Open in Web Editor NEWProduct hunt tutorial app
Product hunt tutorial app
Product-hunt/src/LoginModal.js
Line 2 in afa0d88
no need to this import as we already import this at src/index.js
Product-hunt/src/reportWebVitals.js
Line 1 in afa0d88
What's the purpose of this file?
src/assets/images
src/modules/product/ProductList.js
, src/modules/product/ProductModal.js
or we can have something like this src/components/lists/productList.js
, src/components/lists/UsersList.js
, src/components/modals/productModal.js
.src/app
src/reducers
Header.js
to src/modules/shared/layout/header/index.js
SideDiv.js
to src/modules/shared/layout/SideDiv/index.js
LoginModal.js
to src/modules/login/LoginModal.js
Line 18 in afa0d88
Its recommended to always use ===
operator, as it doesn't do type conversion before comparing unlike the ==
operator which will do a type conversion before comparing.
For example;
5 === '5'
// false Why? Cause they're different types
5 == '5'
// true Why? Cause it converts both to the same type before comparing. JS will convert '5' (string) to 5 (integer) and then compare the two integers 5 and 5 hence it returns true.
Line 5 in afa0d88
You can destruct this props directly like this const Product = ({ ProductVotes, id, ProductImg, ProductName, ProductDescription, CategoryLink, ProductCategory, CommentsNum }) => {
This way make it more descriptive
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.