Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,208,590 members, 8,003,058 topics. Date: Friday, 15 November 2024 at 06:12 AM

React Styling(experienced Devs needed) - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / React Styling(experienced Devs needed) (1225 Views)

So There Are Devs That Earn Up To 30k USD. / Hi Devs, See What I Won (New Survey) / App And UI/UX Devs Needed For A Newly Found Blockchain Project (2) (3) (4)

(1) (Reply) (Go Down)

React Styling(experienced Devs needed) by Nobody: 9:56am On Jul 16, 2022
I want to start developing with react after watching a few beginner tutorial videos and understanding the concepts. My only problem is how I should go about the styling as there are many ways to use CSS in react.
Please experienced react Devs, how do you guys style your react components.? In my opinion I think JS object styling method is the best cos you don't have to leave the file since everything is done in the same file but some blogs said CSS modules are better So please I need answers.
Greatigboman etc
Re: React Styling(experienced Devs needed) by gistray: 10:43am On Jul 16, 2022
U don't know anything.

But every thread looking for REACT developer u go the drop contact.


Now common to style element u know know

2 Likes

Re: React Styling(experienced Devs needed) by Karleb(m): 10:58am On Jul 16, 2022
gistray:
U don't know anything.

But every thread looking for REACT developer u go the drop contact.


Now common to style element u know know

Vawulence dey sleep react go wake am. cheesy

4 Likes

Re: React Styling(experienced Devs needed) by Nobody: 11:13am On Jul 16, 2022
gistray:
U don't know anything.

But every thread looking for REACT developer u go the drop contact.


Now common to style element u know know

I said I was still learning angry
If you don't have anything meaningful to contribute kindly buzz off
Re: React Styling(experienced Devs needed) by Nobody: 11:21am On Jul 16, 2022
Also is there a way I can create a react app and install all the node dependencies offline without having to connect to the internet everytime I want to start a react project
Re: React Styling(experienced Devs needed) by jbreezy: 11:26am On Jul 16, 2022
Think4Myself:
Also is there a way I can create a react app and install all the node dependencies offline without having to connect to the internet everytime I want to start a react project
Firstly with the styling, you can style your app various ways. You can use the inline style, you can create a css folder for each component, you can use the css frameworks, preferably tailwind, material ui or styled components, you can also use the css-in-js. Go for anyone that you find convenient and fast for you. To your second question, no you can't.

1 Like

Re: React Styling(experienced Devs needed) by Nobody: 11:33am On Jul 16, 2022
jbreezy:
Firstly with the styling, you can style your app various ways. You can use the inline style, you can create a css folder for each component, you can use the css frameworks, preferably tailwind, material ui or styled components, you can also use the css-in-js. Go for anyone that you find convenient and fast for you. To your second question, no you can't.

Thanks for your reply cheesy
To be safer, what type of styling do most companies use also what type do you use the most?

The second question, cant I clone(copy and paste) the whole create react app folder and give it another name so I don't have to be downloading everything everytime?
Re: React Styling(experienced Devs needed) by ReactExpress: 11:37am On Jul 16, 2022
Think4Myself:
I want to start developing with react after watching a few beginner tutorial videos and understanding the concepts. My only problem is how I should go about the styling as there are many ways to use CSS in react.
Please experienced react Devs, how do you guys style your react components.? In my opinion I think JS object styling method is the best cos you don't have to leave the file since everything is done in the same file but some blogs said CSS modules are better So please I need answers.
Greatigboman etc

Having everything in the same file makes the contents of the file too much especially if you are doing the jsx and also JavaScript code on the same file. I personally prefer my components to be as minimal as possible. It makes it easier to read but that's just me. The world is your oyster especially if it's your own project. But I would recommend trying out every method so you have a good idea how they work. Then you can better make a decision and also build some level of experience with each method so you are better positioned when taking jobs.
Re: React Styling(experienced Devs needed) by jbreezy: 11:44am On Jul 16, 2022
Think4Myself:


Thanks for your reply cheesy
To be safer, what type of styling do most companies use also what type do you use the most?

The second question, cant I clone(copy and paste) the whole create react app folder and give it another name so I don't have to be downloading everything everytime?
For me, I use all, randomly. But actually, I prefer styled components or css-in-js when building a next js project, tailwindcss or/and material ui for create-react-app and just vanilla css when not using any framework. And for company's part, every company has its own way of styling. That's why you have to have a strong background in css, then a knowledge of multiple css frameworks, not just one. They are easy to learn if you know your css well.

2 Likes

Re: React Styling(experienced Devs needed) by chukwuebuka65(m): 3:46pm On Jul 16, 2022
gistray:
U don't know anything.

But every thread looking for REACT developer u go the drop contact.


Now common to style element u know know

The thing shock me ooo
Re: React Styling(experienced Devs needed) by Nobody: 7:00pm On Jul 16, 2022
chukwuebuka65:


The thing shock me ooo

MF I said I was still learning angry
Re: React Styling(experienced Devs needed) by vankaid: 8:22pm On Jul 16, 2022
Think4Myself:


The second question, cant I clone(copy and paste) the whole create react app folder and give it another name so I don't have to be downloading everything everytime?
Of course you can.
Just do that and modify things inside package.json and other config files you might have there.
Re: React Styling(experienced Devs needed) by Nobody: 8:24pm On Jul 16, 2022
vankaid:

Of course you can.
Just do that and modify things inside package.json and other config files you might have there.

Wow, can you list out the things I need to modify in the JSON file
Re: React Styling(experienced Devs needed) by chukwuebuka65(m): 9:19pm On Jul 16, 2022
Think4Myself:

Wow, can you list out the things I need to modify in the JSON file

the json file contains a list dependencies your app needs. for example if you are going to use axios in your app, your json file should contain axios.if u are going to use lodash, ur json file should contain lodash .if you are going to use react icons , ur json file should contain react icons. so it depends on the libraries that u use in ur app. Men , u should go and watch any react crashcourse u can find online as many times as u can.

1 Like

Re: React Styling(experienced Devs needed) by Nobody: 5:59pm On Jul 17, 2022
Tailwind....

If u near React Bootstrap ready to memorize components with jotter...

grin

2 Likes

Re: React Styling(experienced Devs needed) by Ikechukwu183: 6:10pm On Jul 17, 2022
gistray:
U don't know anything.

But every thread looking for REACT developer u go the drop contact.


Now common to style element u know know
cheesy grin grin
Re: React Styling(experienced Devs needed) by niel63(m): 8:33pm On Jul 17, 2022
Think4Myself:


MF I said I was still learning angry

You're learning and your being rude. How do you handle critics? Because it will come from clients ooo! And e dey burn...
Re: React Styling(experienced Devs needed) by Nobody: 9:10pm On Jul 17, 2022
niel63:


You're learning and your being rude. How do you handle critics? Because it will come from clients ooo! And e dey burn...

They were rude to me at first please
Re: React Styling(experienced Devs needed) by Nobody: 9:11pm On Jul 17, 2022
GREATIGBOMAN:
Tailwind....

I[b] f u near React Bootstrap ready to memorize components with jotter... [/b]

grin

Why's that
Re: React Styling(experienced Devs needed) by niel63(m): 6:59am On Jul 18, 2022
Think4Myself:


They were rude to me at first please

I saw that... but na you be the OP.
If you respond to every criticism you might not learn much or get valuable information as to what you posted. Albeit, just take am easy. Peace!
Re: React Styling(experienced Devs needed) by bularuz(m): 7:35am On Jul 18, 2022
Just use bootstrap or tailwinds and save yourself from CSS headaches
Re: React Styling(experienced Devs needed) by Nobody: 11:26am On Jul 18, 2022
niel63:


I saw that... but na you be the OP.
If you respond to every criticism you might not learn much or get valuable information as to what you posted. Albeit, just take am easy. Peace!

Ok
Re: React Styling(experienced Devs needed) by Nobody: 11:26am On Jul 18, 2022
bularuz:
Just use bootstrap or tailwinds and save yourself from CSS headaches


Ok, thanks, but what if I want something custom, I know bootstrap and it's repetitive, not sure bout tailwind thi
Re: React Styling(experienced Devs needed) by Babtunz: 10:28pm On Jul 18, 2022
I think people have answered you already but to buttress their points I think the styling method to use in a react app boils down to personal preferences. I'd suggest you try each option and settle for the one that suits you best. Personally, I use styled-components because I enjoy writing plain css and other times I use TailwindCSS or Material UI.

Also every company usually have a style-guide they follow so you don't have to worry too much as long as you know your onions in writing plain CSS.
Re: React Styling(experienced Devs needed) by niel63(m): 2:50am On Jul 19, 2022
Think4Myself:



Ok, thanks, but what if I want something custom, I know bootstrap and it's repetitive, not sure bout tailwind thi

Op... I don't think there any form of custom anything apart from a way somebody thinks is nicer than the other.

However we choose to write css, we must know css! I don't know if you understand what I mean.

I've used Tailwind, Chakra UI, MUI, daisyUI, Css module, Styled Component, SCSS, SASS... make I no dey mention utilities like say na better thing. grin

The point is, you need to know your css well.
So I'll suggest writing in the style you're comfortable with. At the end of it all, ensure your work is beautiful and catchy. That's the work of CSS ba? cool cool cool.

1 Like

Re: React Styling(experienced Devs needed) by bularuz(m): 10:18am On Jul 19, 2022
Quite right
Re: React Styling(experienced Devs needed) by bularuz(m): 10:22am On Jul 19, 2022
Think4Myself:



Ok, thanks, but what if I want something custom, I know bootstrap and it's repetitive, not sure bout tailwind thi

Nothing repetitive there, just like you have been advised before you need to learn as much of CSS you can but you can use a CSS framework during software building in order not to waste time.
Re: React Styling(experienced Devs needed) by Nobody: 8:56am On Jul 20, 2022
Don’t use the inline style object pattern, it will make your code really bloated and hard to read your styles.
The most straight forward way would be to have your styles folder. Where you would have a css file for every component or page then import that file into your react component using relative paths.
Also tailwind is awesome with react and really easy to work with.
The documentation is one of the best I’ve seen as well.
Re: React Styling(experienced Devs needed) by jbreezy: 9:59am On Jul 20, 2022
Rgade:
Don’t use the inline style object pattern, it will make your code really bloated and hard to read your styles.
The most straight forward way would be to have your styles folder. Where you would have a css file for every component or page then import that file into your react component using relative paths.
Also tailwind is awesome with react and really easy to work with.
The documentation is one of the best I’ve seen as well.
I guess you are not a tailwindcss fan.
Re: React Styling(experienced Devs needed) by Nobody: 11:47am On Jul 20, 2022
Rgade:
Don’t use the inline style object pattern, it will make your code really bloated and hard to read your styles.
The most straight forward way would be to have your styles folder. Where you would have a css file for every component or page then import that file into your react component using relative paths.
Also tailwind is awesome with react and really easy to work with.
The documentation is one of the best I’ve seen as well.

Thanks for your input
Re: React Styling(experienced Devs needed) by Nobody: 12:08pm On Jul 20, 2022
jbreezy:
I guess you are not a tailwindcss fan.
Actually I’m a critic turned big fan, I moved to tailwind recently and I’m loving it.
I guess you’re asking cause I talked against inline styling. But inline styling with short tailwind classes is a lot more readable than putting entire css style objects inline.

(1) (Reply)

What Programming Language Is This Pls ?? / ? / Urgent! Plz Help - C Programming Problem

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 77
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.