6 Redux Actions
Redux actions are a fancy way of saying “Yo, a thing happened!”. They’re functions you call to get structured metadata that’s passed into Redux reducers.
Our particle generator uses 6 actions. The most complicated one looks like this:
Press + to interact
// src/actions/index.jsexport const CREATE_PARTICLES = 'CREATE_PARTICLES';export function createParticles(N, x, y) {return {type: CREATE_PARTICLES,x: x,y: y,N: N};}
It tells the ...
Access this course and 1400+ top-rated courses and projects.