54
loading...
This website collects cookies to deliver better user experience
API
store data in.npx create-react-app
and start by adding components. At first it felt a little foreign then after five minutes of using it, things started to find their way into places. Files feel more like a proper structure using the React framework with being able to target files using `import React from 'react' at the top of the file. The format is used for collecting any other file that has been exported in their home file.rails new CoolBackend --api
using the api flag with prevent views from being generated. Also to be noted, one should not use rails scaffold as that will generate views which ultimately will not be used for this type of application, that will be handled by React.imported
just the same as any other file would be collected. ${API}/recipes
)dispatch
and it used by redux-thunk which allows for AJAX requests to and from the API endpoint which allows fetch
to work asynchronously. componentDidMount()
helps for firing off a quick redux action creator to get the list of recipes when navigating to the /recipes
route.