react-bits icon indicating copy to clipboard operation
react-bits copied to clipboard

✨ React patterns, techniques, tips and tricks ✨

Results 13 react-bits issues
Sort by recently updated
recently updated
newest added

From reading about do expressions, it seems that the code section under the text > With an appropiate transpiler you can take advantage of the upcoming do expression which is...

Given this: https://github.com/vasanthk/react-bits/blob/master/patterns/18.conditionals-in-jsx.md What about something like this: ```jsx const sampleComponent = () => { const basicCondition = flag && flag2 && !flag3; const obj = { 'flag4': 'Blah', 'flag5:...

I just read a few examples, but many of them look a bit too esoteric, and for instance they don't pass a "standard" linter (e.g. the classic eslint+airbnb). One for...

https://vasanthk.gitbooks.io/react-bits/patterns/32.list-components.html I suggest putting that list item mapping function above SearchSuggestions component definition like below: ```javascript const renderSearchSuggestion = listItem => ( {listItem.name} {listItem.id} ); const SearchSuggestions = (props) =>...

Based on the [description](https://medium.com/@housecor/react-binding-patterns-5-approaches-for-handling-this-92c651b5af56#f45f). If project owners are ok enable [Stage 2 Babel transformation](http://babeljs.io/docs/plugins/transform-class-properties) it is a good alternative to `bind` in the constructor. ```javascript class Switcher extends React.Component {...

I think there's enough interest in Typescript to maybe copy this over and redo in TS and TSX files.

https://github.com/facebook/react/issues/2127 Thank you.

I'm starting to use a pattern like this frequently. The reason being there are multiple date-pickers in `Scheduler` and if you use a component instead of just another object of...

(Shameless plug) I wrote this library [react-loadable](https://github.com/thejameskyle/react-loadable) to standardize the workflow around code-splitting at the component-level and asynchronously loading components. I wrote a [blog post](https://medium.com/@thejameskyle/react-loadable-2674c59de178) too. [Facebook does code-splitting this...

When I click on the link https://vasanthk.gitbooks.io/react-bits/content/ I expect to be taken to the content. Instead, I get a 401 Unauthorized error.