GoConqr has a new look! Let us know what you think.

Module 3 of 5 · Text

Importar y exportar cosas

Ezequiel del Río

  • import * as ACTION from '../actions/actions'; Es como decir, impórtame todo y me lo metes en una constante que es ACTION

            Luego se puede consumir así: ACTION.getWriteoffsFilterCallInit()

            Para exportarlo se hará de la siguiente manera: 

            export const getWriteoffsFilterCallInit = () => ({type: ACTION.GET_WRITEOFFS_FILTERS_INIT});

            export const getActionsModalCallInit = () => ({type: ACTION.GET_WRITEOFFS_ACTIONS_MODAL_INIT});

            Y desde ACTION podremos acceder a todas las funciones.

 

 

 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?