Home / File/ store.js — react Source File

store.js — react Source File

Architecture documentation for store.js, a javascript file in the react codebase. 1 imports, 2 dependents.

File javascript BabelCompiler Optimization 1 imports 2 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  e9e7b3e6_4275_acdb_c5b3_61ea066365d4["store.js"]
  07af56ef_1219_3d9a_ce71_c3b6bfbdec25["redux"]
  e9e7b3e6_4275_acdb_c5b3_61ea066365d4 --> 07af56ef_1219_3d9a_ce71_c3b6bfbdec25
  a6a6a8e0_8122_7056_d5f1_e0953f56c3c9["Greeting.js"]
  a6a6a8e0_8122_7056_d5f1_e0953f56c3c9 --> e9e7b3e6_4275_acdb_c5b3_61ea066365d4
  0c749210_ac4c_fcce_decc_9e31b446c5e6["index.js"]
  0c749210_ac4c_fcce_decc_9e31b446c5e6 --> e9e7b3e6_4275_acdb_c5b3_61ea066365d4
  style e9e7b3e6_4275_acdb_c5b3_61ea066365d4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {createStore} from 'redux';

function reducer(state = 0, action) {
  switch (action.type) {
    case 'increment':
      return state + 1;
    default:
      return state;
  }
}

// Because this file is declared above both Modern and Legacy folders,
// we can import this from either folder without duplicating the object.
export const store = createStore(reducer);

Domain

Subdomains

Functions

Dependencies

  • redux

Frequently Asked Questions

What does store.js do?
store.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Optimization subdomain.
What functions are defined in store.js?
store.js defines 1 function(s): reducer.
What does store.js depend on?
store.js imports 1 module(s): redux.
What files import store.js?
store.js is imported by 2 file(s): Greeting.js, index.js.
Where is store.js in the architecture?
store.js is located at fixtures/nesting/src/store.js (domain: BabelCompiler, subdomain: Optimization, directory: fixtures/nesting/src).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free