#react thumbrules
- You can put any valid JavaScript expression inside the curly braces in JSX.
- React elements are immutable.
- Whether you declare a component as a function or a class, it must never modify its own props.
- React elements are immutable. Once you create an element, you can’t change its children or attributes. An element is like a single frame in a movie: it represents the UI at a certain point in time.
- React Components name should start with Capital letter by convention.
- State is similar to props, but it is private and fully controlled by the component.
- When you call setState(), React merges the object you provide into the current state. The merging is shallow, so this.setState({comments}) leaves this.state.posts intact, but completely replaces this.state.comments.
- Help for setting up the project without using create-react-app (https://blog.usejournal.com/creating-a-react-app-from-scratch-f3c693b84658)
- Deployed at: https://tender-panini-451aa1.netlify.com/#/