DEV Community

Discussion on: Create simple login form in React

Collapse
 
cklek profile image
Conrad Klek

Nice! I’m new to React. Can you style regular JavaScript html elements using the style property the way you did or is that a React specific feature?

Collapse
 
diraskreact profile image
Dirask-React

I've just prepared a solution for you. Let me know if this is what you wanted.
dirask.com/posts/pamEkp

Collapse
 
cklek profile image
Conrad Klek

This is great! I’ve been using a similar method for a while: stackoverflow.com/a/34490573/11218122

Collapse
 
diraskreact profile image
Dirask-React

Hi!
Unfortunately, you can't assign object styles to the HTML elements, it's as you said specific React feature. 🙁