question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A place to discuss what we want/have to do in antd@3.0:

React@16 relative

  • React Umbrella support #5377
  • Refactor all the ref: string to ref: function

antd’s own

Tools

Ant Design Specification relative

  • Bigger default font size, following our designer’s plan.

Site ant.design

  • Rewrite demo in TypeScript #5390
  • Let demo code editable or a Playground #5140

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:40
  • Comments:65 (49 by maintainers)

github_iconTop GitHub Comments

73reactions
kittencommented, Jun 8, 2017

@paranoidjk @afc163 @benjycui

Hiya, I’m one of the styled-components core-contributors and found this thread due to an opened issue on our repo (see above), that informed me that this lib doesn’t support SC. By chance I then found this conversation 😉 – Ok, context aside now

the autoprefixer library may not very reliable compare to postcss

We’ve carefully chosen stylis and are closely working together with @thysultan, who develops it. We wouldn’t have chosen it, if it wasn’t a worthy replacement of PostCSS and the few issues that it had (a couple of missing prefixes in v3), were resolved very quickly. The v2 itself has been in the making for a few months btw, and is now finally out. We can definitely vouch on that part. Let this implementation detail be our worry, if you’d go with SC 😄

The file you’re pointing to is not in use and was deleted now btw, and is part of the old auto-prefixing with inline-style-prefixer. But even that is (and was for us) a very, very, very trusted solution through out the css-in-js community by @rofrischmann.

Or we can say, once pick css-in-js, we will lose convenience of post-css plugin system, such as px-to-rem?

Since in interpolations in our tagged template literals you can just use any JS, simple functions can replace all that stuff. We actually have a separate project called “polished” that is like the lodash for CSS-in-JS and comes with all mixins (i.e. helper functions) that you’d expect from SASS/LESS and the likes: https://polished.js.org

(We indeed neither use PostCSS anymore as mentioned above, nor have we supported its plugins btw)

we have to remain whole current css classname for compatibility, while styled-components will generated it’s own classname for style, it will be redundancy and hard to maintain?

If you need to attach custom classnames, you can easily use our .attrs method, which allows you to attach additional props to a component. For example:

const ButtonLink = styled.a.attrs({
  className: 'your-custom-extra-classname'
})`
   ... // css and stuff
`

Some more goodies and features:

  • You write just CSS (as you might already know), and the only additions are ampersands and nestedness
  • There’s no styles+component mapping
  • Everything’s a component
  • You can write mixins/shared styles with our css helper

I’m here if you need more help. If you need some more info though, check out our new website 💯 https://styled-components.com

65reactions
Enalmadacommented, Aug 8, 2018

+1 for styled-components/emotion/fela support in a future release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ant Design - The world's second most popular React UI ...
An enterprise-class UI design language and React UI library with a set of high-quality React components, one of best React UI library for...
Read more >
antd-v3 - npm
An enterprise-class UI design language and React components implementation. Latest version: 3.26.20-r2.2, last published: 2 years ago.
Read more >
ANTD 3.0.3 CDN links - CDNPKG .com
ANTD 3.0.3 CDNs ; Description, An enterprise-class UI design language and React components implementation ; Website, http://ant.design ; Sources URL, https:// ...
Read more >
useAntdTable - ahooks 3.0
useAntdTable · service receives two parameters, the first parameter is the paging data { current, pageSize, sorter, filters } , and the second ......
Read more >
antd v3 autocomplete works well - CodeSandbox
antd v3 autocomplete works well. 0. Embed Fork Create Sandbox Sign in. Sandbox Info. antd v3 autocomplete works well.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found