Layout Issue

The issue is with this second layout when i try to change the screens he goes like this https://codepen.io/Anes039/pen/MWMaXJb
No description
10 Replies
anes039
anes039OP5mo ago
i added this code in code pen but i did it really in react though
Jochem
Jochem5mo ago
The point of sharing your code in codepen is so that people can click a link and see the problem in action in their own browser. I think you can set a codepen up to process JSX in the JS tab (set the preprocessor to babel in the pen settings for JS). Alternatively you can copy the rendered HTML from your browser and try to use it like that
anes039
anes039OP5mo ago
okay let me try it
Jochem
Jochem5mo ago
otherwise, just use a codeblock and share your code in here, but keep in mind that layout issues are more likely to get answers if people can see the layout issue in their own browser. You can definitely use some other code sharing platform to run React projects, it'll just require a little more setup
anes039
anes039OP5mo ago
how do i copy my rendered html , at page source maybe?
Jochem
Jochem5mo ago
open the inspector, rightclick the body tag, copy, copy outerhtml
anes039
anes039OP5mo ago
now the styles are not being applied
Jochem
Jochem5mo ago
then make a minimal example by hand, or use a different service that supports just running entire react projects there's some linked in #How To Ask Good Questions I think
anes039
anes039OP5mo ago
okay thanks
clevermissfox
clevermissfox5mo ago
You could also use codesandbox or scrimba for your original code w react dependencies
Want results from more Discord servers?
Add your server