Workiva / react-dart

Dart Bindings for React JS
BSD 2-Clause "Simplified" License
412 stars 67 forks source link

How to use style generator func in class dart component? #279

Closed Atom735 closed 3 years ago

Atom735 commented 4 years ago

I tryed to rewrite Sign-in template from Material-UI with dart... And i had a problem with JSS... Material-UI had a function makeStyles, who return function of style generator. I need to get class names and need to study work with it. How i can link it function with my class-component and use him members in props?

aaronlademann-wf commented 3 years ago

makeStyles is a custom hook within the Mui JS library and is outside the scope of what this library supports. It would require a JS interop layer to handle the css-in-js engine that the Mui JS components make use of.

The hooks in this library allow you to write React function components in Dart. They do not make it so that you can make use of hooks written in JS components.