[ This is a content summary only. Visit our website http://ift.tt/1b4YgHQ for full links, other content, and more! ]
by Web Desk via Digital Information World
"Mr Branding" is a blog based on RSS for everything related to website branding and website design, it collects its posts from many sites in order to facilitate the updating to the latest technology.
To suggest any source, please contact me: Taha.baba@consultant.com
ResizeEnd is a jQuery plugin that allows for window resize-end event handling.
As someone who has spent the last 6 years in CSS land, reading negative articles about CSS can be a little disheartening. Thankfully we have people like Christian Heilmann in our community to try and put those people back on the right path. (christianheilmann.com)
Andrés Galante shares a list of things he wish he had known at the beginning of his development career. (css-tricks.com)
A look into the process and implementation of how the engineering team at eBay handles custom fonts. (ebaytechblog.com)
Luis Vieira offers some solid advice on optimising the critical rendering path. (medium.com)
Understanding what goes on inside a browser is the most powerful tool for every web developer. In this article Milica Mihajlija looks at how browsers interpret your code and how they help you load pages faster with speculative parsing. (hacks.mozilla.org)
A tool to prevent JavaScript library bloat. With it, you know exactly for how many kilobytes your JS library increases the user bundle. (evilmartians.com)
Philip Walton shares some great advice on how we can utilise the new script type “module” to ship ES2015+ code to our users without shipping unnecessary code. (philipwalton.com)
The only course you need to learn web development- HTML, CSS, JS, Node, and more! (udemy.com)
Design system utilities for styled-components and other CSS in JS libraries (github.com)
An hand-drawn, interactive illustration about a tram driver, mountains, cloaked cats and everything in between. (alexanderperrin.com.au)
We are seeking an innovative, strategic and multidisciplinary Senior Designer for a full-time position. The ideal candidate has strong communication skills, the ability to work in a fast-paced environment, and a meticulous attention to detail. (strava.com.com)
CatalystUX is seeking a full-time, multi-disciplined, UX designer who is capable of designing complicated enterprise applications. All applicants must have an extensive Dribbble account, a natural drive to solve difficult UX challenges and a yearning to create software that helps others. (catalystux.com)
The post Web Design Weekly #293 appeared first on Web Design Weekly.
We've teamed up with Open SourceCraft to bring you 6 Pro Tips from React Developers.
Tip 1: Use functional components
Tip 2: Keep your components small
Tip 3: Understand how to handle this
Continue reading %6 Pro Tips from React Developers%
This is a reference guide to help developers quickly figure out which lifecycle method will best fit a solution they're currently working on in React.
The constructor for a React component is the first method that gets called. This is where you should initiate state. You should ensure you execute super(props) first. Otherwise, bugs will crop up.
constructor(props) {
super(props);
this.state = {
count: props.initialCount
};
}
This method is called just before component mounting and render method. Setting state here won't trigger a re-render. This method sounds like a nice place to set the component's initial state. However, React's official guidelines recommend using the constructor() instead.
componentWillMount() {
// perform setState operations
}
This is a mandatory method for all React components. It will be invoked when state changes, when the parent component causes it to re-render, or when component.forceUpdate() is called.
The render() method is where you put your JSX code. You can also return false or null if you don't want to render anything. You can read values from this.prop and this.state, but you can't call this.setState() (or call another function that does). You should also not directly interact with the DOM. Instead, use componentDidMount().
render() {
const {message} = this.state;
return(
<div>
h1>List of Messages</h1>
<MessageView message={message} />
</div>
)
}
This method is invoked right after the component has been mounted and render() has been called. Once a component mounts, it means you have access to the actual DOM nodes. This is a good place for performing network requests such as an API call. If you set state here, a re-render will be triggered.
componentDidMount = () => {
this.props.fetchContacts()
}
This method is invoked just before render() whenever there are new props or state changes. The method should only return true or false. If you return false, this means the render function won't be called. However, do note that:
falseThis method has access to nextProps and nextState, which gives you an opportunity to compare them with the current props/state and determine if a re-render is necessary. This is a good place to implement performance optimization code.
shouldComponentUpdate(nextProps, nextState) {
// put performance optimization code here
return true;
}
Continue reading %React Lifecycle Reference Guide%