React: React css manual

Created on 13 Apr 2016  路  4Comments  路  Source: facebook/react

Hi,is there a manual that detailed about React style?

Because I found the offical doc is not explicate it very well.

For example:
flex:1 can directly use in a component,but in html css, it supposed a flex attribute in its parent.

but react doc seems not explain it.

Most helpful comment

css-layout is a different project and not used by React directly, though ReactNative uses it for supporting CSS in native apps. That said, this sounds like a misunderstanding of how flexbox the CSS standard works.

For that I would recommend visiting the above link and the following resources:

All 4 comments

I'm not sure what you mean when you say:

flex:1 can directly use in a component,but in html css, it supposed a flex attribute in its parent.

Can you elaborate? Perhaps with an example?

Thanks for reply.

I was saw this https://github.com/facebook/css-layout/issues/57.

And don't know what css attributes is support in react.

css-layout is a different project and not used by React directly, though ReactNative uses it for supporting CSS in native apps. That said, this sounds like a misunderstanding of how flexbox the CSS standard works.

For that I would recommend visiting the above link and the following resources:

Going to close out since this appears to be a misunderstanding. If you have issue with flex in regards to React Native specifically, I would ask in their repository.

Was this page helpful?
0 / 5 - 0 ratings