How can I put background on div (pyreact)? #1101
Answered
by
rmorshea
valeriofiorentini
asked this question in
Problem
-
I can't put css on pyreact,html components for example the div |
Beta Was this translation helpful? Give feedback.
Answered by
rmorshea
Jul 13, 2023
Replies: 3 comments 2 replies
-
Similar to ReactJS, we do not prescribe how you add styles to your app. Listed below are some of most common ways of adding CSS.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
so it can't be used? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReactPy can include CSS styles but there a number of different ways to do so. The simplest way might be to do the following with
html.style
:As you app grows you may need to consider splitting up your style sheets into different files. In that case you could serve them from a directory and load them with
html.link
: