This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aaa | |
Init -> Assignment has challenge? | |
Assignment has challenge? | |
yes -> Challenge | |
no -> Single Package | |
Challenge | |
start package -> Work | |
Work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Children, cloneElement, useState, createContext, useContext } from 'react'; | |
const ctx = createContext(); | |
export function Tabs ({ children }) { | |
const [selectedIndex, selectIndex] = useState(0); | |
return ( | |
<ctx.Provider value={{ selectedIndex, selectIndex }}> | |
{children} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './style.css'; | |
import React, { useState } from 'react'; | |
import Spinner from 'react-md-spinner'; | |
import useInterval from '../../utils/useInterval'; | |
import { random } from 'lodash'; | |
const labels = [ | |
'מכוונים את הגיטרות', | |
'פורשים מחצלות', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MyWrapperMiddleware = store => next => action => { | |
const state = store.getState() | |
if (!state.isLoggedIn) | |
return next(action) | |
const pouchMiddleware = PouchMiddleware({ | |
path: state.currentPath, | |
db, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pouchMiddleware | |
let invalidate = true; | |
const MyWrapperMiddleware = store => next => action => { | |
const state = store.getState() | |
if (!state.isLoggedIn) | |
return next(action) | |
if (someConditionForChange) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Control, Form } from 'react-redux-form'; | |
class UserForm extends React.Component { | |
render() { | |
return ( | |
<Form model="forms.user" | |
onSubmit={(user) => | |
console.log('-->', user) | |
}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Button extends React.Component { | |
handleClick = (e) => { | |
console.log(this) | |
} | |
render () { | |
return ( | |
<div onClick={this.handleClick}> | |
Click | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Button extends React.Component { | |
constructor (props) { | |
super(props) | |
this.handleClick = this.handleClick.bind(this) | |
} | |
handleClick () { | |
console.log(this) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Button extends React.Component { | |
handleClick () { | |
console.log(this) | |
} | |
render () { | |
return ( | |
<div onClick={::this.handleClick}> | |
Click | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Button extends React.Component { | |
handleClick () { | |
console.log(this) | |
} | |
render () { | |
return ( | |
<div onClick={(e) => this.handleClick(e)}> | |
Click | |
</div> |
NewerOlder