Coder Social home page Coder Social logo

suggestions for 3.x about universal-redux HOT 10 CLOSED

bdefore avatar bdefore commented on July 28, 2024
suggestions for 3.x

from universal-redux.

Comments (10)

catamphetamine avatar catamphetamine commented on July 28, 2024

If you have questions about koa you can ask them here.
Koa is similar to express, but express middleware doesn't work for koa.
The idea is the same though, the only difference are generators instead of normal functions.

from universal-redux.

lndb avatar lndb commented on July 28, 2024

Async/await instead of generators if using Koa 2.x

Using react-helmet instead of react-document-meta.

from universal-redux.

dts avatar dts commented on July 28, 2024

I am somewhat familiar with Koa, and the syntax is cool, and lets you do neat things with middleware that were annoying with Express. Are there specific use cases that make it a high priority?

from universal-redux.

arkist avatar arkist commented on July 28, 2024

inline-styles still has many problems. if using it with external style, it's too hard to manage. and have no emmet supported yet. css-modules is fine enough.

from universal-redux.

bdefore avatar bdefore commented on July 28, 2024

@arkist i agree. i think given the churn in css with react it will be best to leave things with css modules for now, but allow people to configure webpack to use whatever other setups they need. radium should be possible without it being built in.

from universal-redux.

catamphetamine avatar catamphetamine commented on July 28, 2024

@arkist what "many problems" do inline styles have?

from universal-redux.

arkist avatar arkist commented on July 28, 2024

@halt-hammerzeit as I mentioned,

  1. It is hard to manage. Imagine if you using CSS framework like bootstrap. Still keep in mind how whole external styles and override CSS props. not all the styles in inlined, adding some styles in 'inline' can't save us.
  2. All the pseudo selectors/elements. writing more ' is feel so annoying. and can't handle pseudo element correct way.
  3. No Emmet/IDE support. typing is very tired. and people miss types usually.
  4. Not the Standard. most of 'inline-styles' using camelCase and 'string' and can not be supported CSS' good parts.

if you make every part from scratch or using inline-styled-react-components-only, inline styles may help you. but if not, can not recommend IMHO.

from universal-redux.

catamphetamine avatar catamphetamine commented on July 28, 2024

The only things I can agree are no pseudo elements and no pseudo selectors, no IDE support, no autocompletion.

I don't agree with your other statements.

External styles are more feature-rich, and that's the only thing about them.

from universal-redux.

bdefore avatar bdefore commented on July 28, 2024

In case anyone is interested in koa support, I've done some work to pull out the serverside rendering into an Express middleware, that's ripe for someone making a koa version. #38

from universal-redux.

bdefore avatar bdefore commented on July 28, 2024

Koa support is now merged in with #60 and released with 3.0.1

from universal-redux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.