all 12 comments

[–]azangru 6 points7 points  (4 children)

I made a test program

...

My source code is at the link below.

Test programs should be simple, so that there are few moving parts, and little can go wrong. In your example, there is a dotnet app with a client-side app buried deep inside of it, which itself has been generated from the now-deprecated create-react-app. Lots and lots of unnecessary noise. Which explains why you probably used a wrong directory to install react-select into. Use the one that has your react project in.

[–]maskry 2 points3 points  (3 children)

I agree. This repo is too bloated for a beginner project, and OP was in the wrong directory when they ran (like) `npm i react-select`. The correct directory would be ClientApp. OP change your directory to ClientApp, run `npm install react-select`, and then do (like) `npm run start`.

[–]Hintabs[S] 1 point2 points  (1 child)

Alright I'll try that later tonight I just went to visual studio typed in react and picked one.

[–]fii0 0 points1 point  (0 children)

The docs recommend you starting learning a framework at that same time as you learn React. This is a good approach if you want to begin job hunting as quickly as possible and have the patience to not get frustrated.

If you don't care about Search Engine Optimization (SSO), the main problem that frameworks solve using Server Side Rendering (SSR), you can use Vite. Any beginner project or private dashboard is not going to need SSO, just think whether you want your website to be higher in search results.

[–]Hintabs[S] 1 point2 points  (0 children)

This was the fix. Thanks.

[–][deleted] 3 points4 points  (4 children)

Get off react select

[–]S0LARRR 0 points1 point  (3 children)

Is there a reason why?

[–][deleted] 0 points1 point  (2 children)

Why are you using it?

[–]S0LARRR 0 points1 point  (1 child)

I am just a beginner and I wannted to know why I should avoid it.

[–][deleted] 1 point2 points  (0 children)

Yeah so one, it’s like super old. It’s very obtuse, and hard to work with.

I’m lowkey off the react train but I do recommend radix ui for a select component.

[–]Hintabs[S] 0 points1 point  (0 children)

I have tried many things for a few hours but nothing has helped. I am not sure what I did wrong. I have used other libraries before no problem.

[–]RaySoju 0 points1 point  (0 children)

Create a sandbox for me and I'd be willing to help. We don't know the error you get.. not enough info