mnashawati / countries-react Goto Github PK
View Code? Open in Web Editor NEWCountries React Project
Home Page: https://cyf-mnashawati-countries-react.netlify.app/
Countries React Project
Home Page: https://cyf-mnashawati-countries-react.netlify.app/
Just kidding, but hopefully you get the point. 200+ lines is a lot for a single component and file.
Lines 1 to 217 in 19badaa
It's generally a bad idea to define components inside other components (just like defining functions inside other functions) as then the inner components can see the implementation details of the outer component, and overall the whole code looks bloated and hard to read.
I'd suggest you to extract <BigCountryCard>
and < CountryCard>
from <App>
. That will force you pass explicitly everything they need from <App>
, but that's a good thing. I'd also recommend to create a file per component to reduce the size of the files and navigate the code more easily.
There's too much space between the countries on a desktop...
...and not enough on a phone.
Have a look at the specification for a reference https://www.frontendmentor.io/challenges/rest-countries-api-with-color-theme-switcher-5cacc469fec04111f7b848ca
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.