Giter Site home page Giter Site logo

stupidism / stupid-rc-starter Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 12.51 MB

Hoc-style React Component Starter with storybook integrated

Home Page: https://stupidism.github.io/stupid-rc-starter/

License: MIT License

JavaScript 99.64% CSS 0.36%
hoc starter-kit boilerplate react composable higher-order-component storybook gh-pages jest snapshot-testing component

stupid-rc-starter's Introduction

README of starter

If you are here for the starter click above link
If you are here for the component library, this is it

Example Component: react-render-counter

RenderCounter is a tool component can be used in dev environment. It can tell you how many times each part of your component has been rendered.
This is composed with a HOC and a pure component to count render times
HOC is also useful when you want to track render times for your component.

Installation

yarn add --dev react-render-counter

or

npm install --save-dev react-render-counter

Usage

  1. RenderCounter - withRenderCount(Counter)
import RenderCounter from 'react-render-counter';

<AnyComponent>
  <RenderCounter initialCount={0} />
</AnyComponent>
  1. withRenderCount - High order component to provide data and logic
import { withRenderCount } from 'react-render-counter';

const MyCounter = ({ count }) => <div>{count + 1}</div>;

export default withRenderCount(MyCounter);
  1. Counter - Pure component to render count
import { Counter } from 'react-render-counter';

<div>
  <Counter count={1} /> 
</div>
  1. hocs - Some handy higher-order components.
API of hocs
// MyComponent.js
import withFoo from 'react-render-counter/hocs/withFoo';

const MyComponent = () => <div />;

export default withFoo(MyComponent);
// MyHoc.js
import compose from 'recompose/compose';
import withFoo from 'react-render-counter/hocs/withFoo';
import withBar from 'react-render-counter/hocs/withBar';

export default (fooOptions, barOptions) => compose(
  withFoo(fooOptions),
  withBar(barOptions),
);

With storybook, things below are included in the site:

  • online demo
  • prop tables
  • code examples
  • TODO: comments

License

Copyright © 2017, Stupidism. Released under the MIT license.

stupid-rc-starter's People

Contributors

bebraw avatar dusnoki avatar greenkeeper[bot] avatar no23reason avatar stupidism avatar yn5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stupid-rc-starter's Issues

An in-range update of lodash is breaking the build 🚨

The dependency lodash was updated from 4.17.10 to 4.17.11.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lodash is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of storybook is breaking the build 🚨

There have been updates to the storybook monorepoundefined

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the storybook group definition.

storybook is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v3.4.11

3.4.11

2018-September-17

Dependencies

  • Allow v1 or v2 in airbnb-js-shims #4190
FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @storybook/addon-events is breaking the build 🚨

The devDependency @storybook/addon-events was updated from 3.4.10 to 3.4.11.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@storybook/addon-events is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v3.4.11

3.4.11

2018-September-17

Dependencies

  • Allow v1 or v2 in airbnb-js-shims #4190
FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-loader is breaking the build 🚨

The devDependency eslint-loader was updated from 2.1.0 to 2.1.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-loader is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for 2.1.1
Commits

The new version differs by 3 commits.

  • f9d48ea 2.1.1
  • 7040248 Stop fixing loop (#244)
  • 7108379 Allow formatter to receive string (path) to file exporting formatter function (#247)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of stylelint is breaking the build 🚨

The devDependency stylelint was updated from 9.5.0 to 9.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

stylelint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for 9.6.0
  • Added: suggestions for invalid CLI options (#3622).
  • Added: no-empty-first-line rule (#3650).
  • Added: at-rule-name-space-after autofix (#3653).
  • Added: block-closing-brace-empty-line-before autofix (#3598).
  • Added: block-closing-brace-space-before autofix (#3673).
  • Added: comment-whitespace-inside autofix (#3619).
  • Added: declaration-bang-space-after autofix (#3598).
  • Added: declaration-bang-space-before autofix (#3592).
  • Added: declaration-colon-newline-after autofix (#3588).
  • Added: function-comma-space-after autofix (#3555).
  • Added: function-comma-space-before autofix (#3596).
  • Added: function-name-case autofix (#3674).
  • Added: function-max-empty-lines autofix (#3645).
  • Added: function-parentheses-newline-inside autofix (#3601).
  • Added: function-whitespace-after autofix (#3648).
  • Added: media-feature-colon-space-after autofix (#3623).
  • Added: media-feature-colon-space-before autofix (#3637).
  • Added: media-feature-name-case autofix (#3685).
  • Added: media-feature-range-operator-space-after autofix (#3639).
  • Added: media-feature-range-operator-space-before autofix (#3618).
  • Added: media-query-list-comma-newline-after autofix (#3643).
  • Added: media-query-list-comma-space-after autofix (#3607).
  • Added: media-query-list-comma-space-before autofix (#3640).
  • Added: function-parentheses-space-inside autofix (#3563).
  • Added: selector-attribute-brackets-space-inside autofix (#3605).
  • Added: selector-attribute-operator-space-after autofix (#3641).
  • Added: selector-attribute-operator-space-before autofix (#3603).
  • Added: selector-pseudo-class-case autofix (#3671).
  • Added: selector-pseudo-class-parentheses-space-inside autofix (#3646).
  • Added: selector-type-case autofix (#3668).
  • Added: no-eol-whitespace autofix (#3615).
  • Added: no-extra-semicolons autofix (#3574).
  • Added: value-list-comma-newline-after autofix (#3616).
  • Added: value-list-comma-space-after autofix (#3558).
  • Added: value-list-comma-space-before autofix (#3597).
  • Added: baseIndentLevel to indentation (#3557).
  • Fixed: autofix for 5 whitespace rules (#3621).
  • Fixed: linebreaks TypeError (#3636).
  • Fixed: max-empty-lines incorrect line reporting (#3530).
  • Fixed: media-query-list-comma-newline-after false positives for trailing comment (#3657).
  • Fixed: no-descending-specificity false positives for CSS Modules functional pseudo-classes (#3623).
Commits

The new version differs by 99 commits.

  • d285c8f Prepare 9.6.0
  • 66b8f09 Update plugins.md (#3692)
  • 5a4fcbe Add codacy as an analysis platform engine (#3691)
  • d02b907 fix(package): update known-css-properties to version 0.8.0 (#3684)
  • b25d33d Update CHANGELOG.md
  • 16d49c0 Document mixin parameter note (#3688)
  • acd8898 Fix ESLint Jest warnings (#3689)
  • 3e22b9f Update CHANGELOG.md
  • 8642003 Update CHANGELOG.md
  • 7a18014 Add no-empty-first-line rule (#3650)
  • 8dadc25 feat: add autofix to media-feature-name-case (#3685)
  • 31c73b4 Update CHANGELOG.md
  • fbe3429 Add auto fix for selector-pseudo-class-case rule (#3671)
  • fefb34b Update CHANGELOG.md
  • 55a004e feat: add autofix for rule "selector-type-case" (#3668)

There are 99 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of enzyme is breaking the build 🚨

There have been updates to the enzyme monorepo:

    • The devDependency enzyme was updated from 3.5.1 to 3.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the enzyme group definition.

enzyme is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-jsx-a11y is breaking the build 🚨

The devDependency eslint-plugin-jsx-a11y was updated from 6.1.1 to 6.1.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jsx-a11y is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for Minor fixes and documentation updates

6.1.2 / 2018-10-05
[fix] Add link-type styling recommendation to anchor-is-valid #486
[fix] label-has-for: textareas are inputs too #470

Commits

The new version differs by 12 commits.

  • c538d35 6.1.2
  • ea964b1 Update changelog
  • 43d1d94 Add link-type styling recommendation to anchor-is-valid
  • 71819a0 [Docs] accessible-emoji: plural of emoji is emoji
  • 4a0608b [Docs] label-has-associated-control: update label id
  • 9957219 [Tests] temporarily allow node 4 + eslint 4 to fail
  • 969ce6d [Dev Deps] add missing dev dep
  • 1be1744 [Tests] use nvm install-latest-npm
  • 9103c7a [Tests] add additional test case for #474
  • bbad58a Merge pull request #471 from ljharb/textarea
  • 47633fb [Fix] label-has-for: textareas are inputs too
  • c1bf3c1 Update aria-props.md to link to the correct doc

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of react is breaking the build 🚨

There have been updates to the react monorepoundefined

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the react group definition.

react is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v16.5.1

16.5.1 (September 13, 2018)

React

  • Improve the warning when React.forwardRef receives an unexpected number of arguments. (@andresroberto in #13636)

React DOM

  • Fix a regression in unstable exports used by React Native Web. (@aweary in #13598)
  • Fix a crash when component defines a method called isReactComponent. (@gaearon in #13608)
  • Fix a crash in development mode in IE9 when printing a warning. (@link-alex in #13620)
  • Provide a better error message when running react-dom/profiling with schedule/tracking. (@bvaughn in #13605)
  • If a ForwardRef component defines a displayName, use it in warnings. (@probablyup in #13615)

Schedule (Experimental)

  • Add a separate profiling entry point at schedule/tracking-profiling. (@bvaughn in #13605)
FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of lint-staged is breaking the build 🚨

The devDependency lint-staged was updated from 7.2.2 to 7.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

lint-staged is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v7.3.0

7.3.0 (2018-09-20)

Features

  • Allow linting files outside of project folder (#495) (d386c80)
Commits

The new version differs by 1 commits.

  • d386c80 feat: Allow linting files outside of project folder (#495)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

An in-range update of babel-plugin-transform-react-remove-prop-types is breaking the build 🚨

The devDependency babel-plugin-transform-react-remove-prop-types was updated from 0.4.15 to 0.4.16.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

babel-plugin-transform-react-remove-prop-types is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v0.4.16
  • [new] update Babel 7 (#155)
  • [fix] Remove unused MemberExpression root identifiers (#158)
  • [fix] Use regex.test(str) instead of str.match(regex) (#152)
  • [fix] Replace Set with WeakSet for collecting removed paths (#151)
Commits

The new version differs by 9 commits.

  • fb3c061 0.4.16
  • fbca3d7 Update prettier
  • 70e73d6 Update babel devDependencies
  • 3c78036 Remove unused MemberExpression root identifiers (#158)
  • 5fa6824 Remove some unused Babel plugins (#157)
  • c7987f4 Use regex.test(str) instead of str.match(regex) (#152)
  • 4bca1e1 chore(package): update Babel 7 (#155)
  • 7c17eb2 Merge pull request #151 from oliviertassinari/weakset
  • 497ae63 Replace Set with WeakSet for collecting removed paths

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

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.