React & Modern Frontend (445 Qs)•Part 11: Legacy Architecture, Migration Patterns & Historical Internals (354 - 445)
How to define constants in React?
You can use ES7 static field to define constant.
javascript
class MyComponent extends React.Component {
static DEFAULT_PAGINATION = 10;
}