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.

More complex Example app

See original GitHub issue

TL;DR: We need your help to build a React app covering all of the styled-components API to help us make sure the library works as expected!


As of #1357 we screenshot integration test our example app in CI for every PR, which is super awesome to make sure styled-components works as expected. Unfortunately, right now the example app isn’t very complex, it’s really only a couple lines of code.

We need a bigger Example app which leverages the entire styled-components public API and many CSS edge cases so we know that most things are working as expected. What specific content that app has doesn’t really matter, that’s all up to you. (massive bonus points if it looks great though!)

The app lives in the example/ folder in the repo. Whatever specific content you come up with for the app, it should use all of the following things at least once:

  • styled-components API:
    • injectGlobal
    • css
    • keyframes (note: we screenshot the app in ci, so this has to be something that’s applied immediately somehow and doesn’t change over time?)
    • styled.x
    • styled.x.attrs
    • styled(SomeComp)
    • SomeStyledComp.extend
    • SomeStyledComp.withComponent
      • Theming
      • ThemeProvider
      • withTheme
    • Interpolations
      • css fragments
      • Static interpolations
      • Function interpolations with props
      • Interpolating other components
  • CSS features
    • Media queries
    • Pseudo-selectors
    • Nesting
    • Parent selectors
  • whatever else you can come up with!

Given the size of this task and its ambiguity it makes sense to have multiple people tackle this together. A great first step would be to come up with a quick plan for the contents of the app and then start coding! Any ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:40 (20 by maintainers)

github_iconTop GitHub Comments

4reactions
dreamorosicommented, Dec 17, 2017

Hi everyone, huge fan of SC, I’d really love to contribute. Can we keep in touch to come up with a plan?

3reactions
dreamorosicommented, Dec 18, 2017

So we were discussing this on Spectrum, as @mxstbr suggested, and we were kinda going toward doing very basic examples, like those found on the documentation pages, and then expand them where needed. As for the format we were thinking about mimicking the one used in the docs with the code blocks on the left and the rendered result on the right so we can keep things organised and know what is what.

I don’t think we need anything too fancy and since it’s gonna be used for screenshots only there’s no point in making it interactive (?).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Complex Apps: How to Build One - Koombea
An example of a real-world complex app would be a geographic information system. This tool can be used by scientists and researchers to...
Read more >
Complex Application Design: A 5-Layer Framework
We define a complex application as any application supporting broad, unstructured goals or nonlinear workflows. In addition, complex apps ...
Read more >
Understanding Complex Applications and Designing them ...
Complex apps allow users to manage and navigate large data sets using Analytics to aid better decision-making.
Read more >
How to handle complexity in complex applications? - BigPicture
Complex Apps​​ User flow isn't linear here, like in most mobile apps or websites. Think about Figma, Photoshop, Excel, or other similar tools....
Read more >
What are some of the most complex applications you've built ...
The most complex application I have built as a web developer is https://hellochess.com . It is a live chess server running on Node.js,...
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