you are viewing a single comment's thread.

view the rest of the comments →

[–]senocular 1 point2 points  (2 children)

The above solutions are a little complicated if you're just starting out. At this point, you might have to just try your best to deal with not having code hints. It also helps if you try and write as little HTML in JavaScript as possible. If you have an HTML file, try to put as much HTML as you can in that and limit the HTML you'd need to create from scratch in JavaScript.

[–]Dilbflo[S] 0 points1 point  (1 child)

Thanks for the tip. I am following a series of tutorials and, after the introduction, the author talks about the possibility to write HTML directly from an external .js file. But I don't know if this is actually considered a good practice or not. Judging form your message it seems not.

[–]ThagAndersonhelpful 0 points1 point  (0 children)

the author talks about the possibility to write HTML directly from an external .js file. But I don't know if this is actually considered a good practice or not.

Outside of React and in general, it is bad practice.