tloth / freddie-and-annas-glamour Goto Github PK
View Code? Open in Web Editor NEWFAC Week 13 React app
FAC Week 13 React app
Line 22, I like it.
{position === 'left' ? <Flower1 /> : <Flower2 />}
π
I love yo lil svg bodies! π«ππ¬
At the moment it's hardcoded in. It might be nice to select your user and see it update with your picture
The avatars have our images. I like to feel targeted in that way.
I kept clicking the click me button and it speeds up your time, maybe hide this button when it is initially clicked so it can't be clicked again πββοΈ
You made your api call in the avatar component. Seeing as you'll need the data from that call in both the avatar and timebar components it might make a bit more sense to make it at the top level and pass down the data to both components
It may just be that you haven't gotten around to using them yet but there are a couple of unused imports such as in Avatar.js (lines 6, 7) and when you destructured userData on line 19 you didn't use followers π§ββοΈ
Nice use of the functional update form to avoid getting stuck with the the same value of count in the event listener π
freddie-and-annas-glamour/src/components/TimeBar.js
Lines 19 to 27 in ef51644
You probably don't want to create the timeout inside your state update function. I think this would work if you create the timeout outside, then pass a function that updates state in as the timeout callback. So every x seconds your state update runs
e.g. Avatar.js can have Avatar.css
Then import "./Avatar.css"
in the Avatar.js file.
Means you can have styling specifically for that file.
also β¨modularisation β¨ ...
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.