How do you include additional files using VS2010 web deployment packages?

Great question. I just posted a very detailed blog entry about this at Web Deployment Tool (MSDeploy) : Build Package including extra files or excluding specific files. Here is the synopsis. After including files, I show how to exclude files as well. Including Extra Files Including extra files into the package is a bit harder … Read more

How can I update the parent’s state in React?

For child-parent communication you should pass a function setting the state from parent to child, like this class Parent extends React.Component { constructor(props) { super(props) this.handler = this.handler.bind(this) } handler() { this.setState({ someVar: ‘some value’ }) } render() { return <Child handler = {this.handler} /> } } class Child extends React.Component { render() { return … Read more