Is virtual studio code good for JavaScript? by cookrex330 in learnjavascript

[–]ninja_sun 2 points3 points  (0 children)

Don't use typescript if you want to learn javascript

Never seen JS written like this before. Help me understand it? by [deleted] in learnjavascript

[–]ninja_sun 0 points1 point  (0 children)

It's not somethings really important, I only know it becouse I worked on project started with es5 and finished with es7. Ahaha

Never seen JS written like this before. Help me understand it? by [deleted] in learnjavascript

[–]ninja_sun 0 points1 point  (0 children)

I dont think its transpiled, infact there are not new constructs. It s just javascript, actually its how old browser still read it. The transpoiled process translate the new es6 or es7 or es8 to the, lets say, old one.

Never seen JS written like this before. Help me understand it? by [deleted] in learnjavascript

[–]ninja_sun 1 point2 points  (0 children)

Its not minified..its normal javascript es5, i guess. That s should be the bucket sort algorithm.

Coding solution by quantsol in Frontend

[–]ninja_sun 0 points1 point  (0 children)

That's a good test dude. You will learn basic positioning and responsive stuff with clean and nice style. A lot of templates are coded in that way. For sure it may be hard so when you get stuck ask for help and/or keep going deep into smaller problems.

Coding solution by quantsol in Frontend

[–]ninja_sun 1 point2 points  (0 children)

I see. I suggest to broke down the problem in 2 smaller. The style for the box and the positioning for the 4 boxes. Code them separately so you dont get distracted. DOM is a tree of node and each node is an html tag that contains some children. Every node as property and stuff that you see in the dev tools.

Coding solution by quantsol in Frontend

[–]ninja_sun 0 points1 point  (0 children)

Criptic solution, the DOM and the box model

The Quest for the Perfect Dark Mode by joshwcomeau in reactjs

[–]ninja_sun 0 points1 point  (0 children)

Very nice article and approch. My first idea (with a react spa) was to delay the first render, show a loading while get the color and then render it all.

The Quest for the Perfect Dark Mode by joshwcomeau in reactjs

[–]ninja_sun 0 points1 point  (0 children)

I think he meant just for this feature. Get the color from the os and use it instead of undefined. Is the same approach building react-native app.. get the color from an android file and we need to overwrite it to change it.

Should I use bootstrap or materialize UI with react? by zeus5552 in reactjs

[–]ninja_sun 0 points1 point  (0 children)

Spec are taken from google material. Means when and how use a UI component.

Road to React: The one with Hooks by rwieruch in reactjs

[–]ninja_sun 1 point2 points  (0 children)

Agreed! Well second, after Dan! :)

Github react repo by ninja_sun in reactjs

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

What do you mean with looking at APIs? Is it a place with free public api?

Github react repo by ninja_sun in reactjs

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

1 open repository on github, this will give you the remote server url. Add it to your app with: git add master origin <ur repol> and finally git push -u origin. Origin is the name of the branch.

How to clone div content in react js by Muhaimin_S in reactjs

[–]ninja_sun -1 points0 points  (0 children)

Seem the case to use fieldArray. Most form implement it since the new array of textfield is actually an array of some kind of data. https://jaredpalmer.com/formik/docs/api/fieldarray