« first day (4116 days earlier)      last day (815 days later) » 

1:41 AM
Hey there, is NPM up or down for anyone else?
 
2:02 AM
Nevermind, it was my network :)
 
 
1 hour later…
3:12 AM
Hello, people! Or should I say Hello Array<https://schema.org/Person>
 
@Junaga Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
3:32 AM
 
 
8 hours later…
11:03 AM
Is this VLQ answer delete worthy? stackoverflow.com/a/65197898/1075247
@duhaime nope, might be worth asking on main?
 
11:36 AM
also I've voted: NAA here stackoverflow.com/a/54518560/1075247 🤷‍♂️
 
11:56 AM
hmm.. hard decisions eh? The VLQ is technically right since it's just saying "the default MUI theme z-index's are like that so just take something bigger like 1900", but without any explanation it's not useful IMHO.. the NAA one well.. javascript question, C++ answer build on top of a C++ STL specific algorithm, nice to know but that's it
z-indexes.. z-indicies? :<
 
 
3 hours later…
2:48 PM
Hey, is this a good place to ask questions about ReactJS by chance?
I'm trying to start learning some development using JavaScript and React and having some trouble
Does anyone happen to know how I can change which page is displayed first on my "yarn start" command? It currently shows Home.js, but I want to change it to something else
The current JSON file has the following code
 
@StriveForGreatness Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
1 message moved to Trash can
 
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
Does anyone happen to know what I can do to fix this ?
If so I'd really appreciate it
Thanks
 
3:37 PM
@StriveForGreatness you need to look for Route page to change the initial / home page component.
 
@SrimuruganSri Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Route page? @SrimuruganSri
 
@StriveForGreatness you can find all the Routes in your entry component.
 
I'm still lost :/ , so are you saying I should check the JS file that is loaded first?
 
3:53 PM
It totally depends on the project, you need to find how the routing works.
 
Okay I'll figure it out thanks
 
@StriveForGreatness look for any routing npm in your package.json. So that you can easily find a solution
 
in the package.json, I see only @types/react-router-dom
 
Check for similar line <Route path="/" component={YourEntryComponent} />
 
I'll check ! Thanks
I think I may have found something
in my app.tsx file i see the following line
const content = useRoutes(routes);
and after searching the definition of routes I see where everything is being routed
 
3:59 PM
refer this and update your component, reactrouter.com/docs/en/v6/api#useroutes
 
4:14 PM
Awesome
Thank you
Wait
const routes: PartialRouteObject[] = [
  {
    path: '*',
    element: <BaseLayout />,
    children: [
      {
        path: '/',
        element: <Overview />
      },
      {
        path: 'overview',
        element: (
          <Navigate
            to="/"
            replace
          />
        )
      },
Here's a snippet of the code
So in this case "path: '*'," refers to if a path wasn't specified?
 
5:04 PM
I was able to figure it out @SrimuruganSri
 
5:22 PM
@StriveForGreatness Cool !
 
6:21 PM
Okay another quick question when it comes to styling if you happen to know
@SrimuruganSri
 
@StriveForGreatness What was the question ?
 
Okay, so I'm trying to change the CSS of an item in one of my components right.
Here's the .ts file for reference
Let's say I wanted to change the font of the menu items
How would I go about doing so?
It doensn't seem to be importing any CSS files for me to use
 
No, I want to change the font of the menu items
 
If you want to change font, not the icons. You need to write / update CSS in your file for that
 
6:26 PM
Okay
After writing file
Lets say I have the following
.menuText{
font: Arial
How would I add that to a certain menu item?
Does that make sense?
}
@SrimuruganSri
 
It will have you the solution
 
My code doesn't have the menu items in a div
 
6:42 PM
You might have some other element
 
yeah I inspected it in google chrome
I found the CSS that is used for it
But I want to change the CSS for a SPECIFIC menu item
I'm trying to figure it out now
 
6:59 PM
Yeah I can't seem to find out how
 
 
3 hours later…
9:44 PM
Sorry to ask again, but does any one happen to have any idea how I can change the specific CSS of a menuItem I have created in ReactJS. Essentially, I've created a nav bar and I just want the settings option to contain a different color text
I've tried using the above github docs, but I couldn't seem to figure out how to do it
 

« first day (4116 days earlier)      last day (815 days later) »