by johnpython on 10/3/17, 1:46 AM with 10 comments
by artpar on 10/3/17, 3:01 AM
- Make sure you know what you want to make
For smaller pages (one page sites, not SPA):
- Use one of bootstrap/semanticui, include their dist files directly (dont get into the npm/gulp/bower yet)
- Use their kitchen sink to pick up components (both bootstap/semanticui have loads of examples)
- Include JS dependencies the old way (copy the min.js manually in your project), keep try to keep this number low
- Try to avoid using frontend frameworks for these (say vue/angular/react)
For slightly larger sites (SPAs/Multiple page sites)
- Choose one particular frontend framework and stick to it (the productivity gain does not come from using a tool, it comes from using a tool repeatedly)
- Get the closest looking template from somewhere in above chosen tech (i usually pick one from https://themeforest.net/ but there are many free resources, like AdminLTE etc)
- Make sure it already has the build/minify pipeline setup (most of them have it)
- Adapt it to your needs
by jrowley on 10/3/17, 4:33 PM
2nd) if you have to use a framework (say react), learn to appreciate what it does for you. Try to understand what it is accomplishing and don't be too afraid of jargon. It's a steep hill, so you'll need patience and perseverance, but it gets better, and there is some world class, creative, software engineering going on in js framework these days.
addendum:
I don't recommend you spend a lot of time checking this out now, but react boilerplate is an impressive example of a modern frontend js stack. Tons of frameworks, and very possibly too much too soon, but it's pretty well designed and documented, and has a nice supportive community.
by twobyfour on 10/3/17, 10:37 AM
by firemelt on 10/5/17, 7:43 PM
I need tutorial/resource/framework to layouting/griding component
I have tried things like material-ui but layouting the component is still hard, because it really depends on the css
If only flexbox in web is as easy as flexbox in react-native
by romanovcode on 10/5/17, 1:42 PM