Set Tool
Switches the current tool to the target tool.
Syntax
store.dispatch({ type: "SET_TOOL", payload: tool });
Parameters
tool
The target tool to change to. List of available tools to switch to can be found here
Examples
Switches to the pencil tool.
store.dispatch({
type: "SET_TOOL",
payload: "PENCIL_TOOL"
});