You can write components however you want. For components and styles, there's numerous approaches, and it's up to you which one you use. You can write your CSS totally separately, you can import CSS into a JS file and have it auto-generate unique class names, you can define styles completely inline in a component, and so on.
Can you maybe clarify what you think you can't do with React?
Can you maybe clarify what you think you can't do with React?