javascript-react-patterns
javascript-react-patterns copied to clipboard
Repo related to the FrontendMasters course on JavaScript and React patterns
https://github.com/lydiahallie/javascript-react-patterns/blob/4ec96d8a6afaa1a8cd1b805cbbeee490f32623b1/pages/patterns/react-patterns/provider-pattern.mdx#L38C1-L38C78 ``` Before the Context API was available, we often ended up we often end up with Before the Context API was available, we often ended up ```
Fix typo
```js export function withStyles(Component) { return (props) => { const style = { color: "red", fontSize: "1em", // Merge props ...props.style, }; return ; }; } ``` ```js import {...
Can I fork and translate your repo? (English to Chinese) I think this can help more developers.
Hi I see extra files counter.js, test1.js, test2.js in module pattern / solution section. Do we need them there? Thank you :)
a typo fix
This is not an issue but a question. I love the images and videos used to explain things like in https://javascriptpatterns.vercel.app/patterns/design-patterns/module-pattern. How were these created?
For data properties of a frozen object, their values cannot be changed since the `writable` and `configurable` attributes are set to `false`. If we try to use the `increment()` or...