Closed lttb closed 7 years ago
I am not sure we should do this considered recent discussions regarding maintaining the white lists.
And we can't support this api and without proxies and without white lists.
I thinks that we can provide styled-jss/dom
with Proxy for examples (REPL etc.) and make it easier to try, but the main recommendation is babel-plugin usage
Lets make sure styled-components uses react-dom-elements package, so that we don't have to maintain it alone. This pr is mainly about compatibility to styled-components, its not really a better DX and just adds in package size otherwise.
@kof but styled
function with dom-elements placed in styled-jss/dom
, so it would not add package size in default styled-jss
usage.
And I think that we need to avoid dom-elements here and use Proxy/babel-plugin
I ment total package size on npm and total amount of code to maintain.
I think we can close it for now because of babel-plugin-styled-jss, and return to this later if need.
Support tags as
styled
properties. Thisstyled
has backward capability with originalstyled
.This interface has some issues:
styled
instanceBut they can be solved by
Proxy
.And we can use it this way:
Proxy
for runtime usage if we don't worry about performance and browser capabilityUsage