Skip to content

A simple SPA news site built with React and React hooks

Notifications You must be signed in to change notification settings

Doesntmeananything/news-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My news site

A single page news app built with:

Motivation

React Hooks provide a more elegant way of writing components and managing their state and life cycle. In order to familiarise myself with a fundamentally new way of creating components, I have created this app based around individual stateful block and overarching state of fetched data from an external API.

Base-UI was used as a mature UI-kit that supplies ready-made but malleable components.

CRA was used to test limits and extendability of this particular boilerplate set.

How to set up locally

  1. Clone the repository.
  2. Create a config.js file in src folder.
  3. Register your own free api key at NewsAPI.org.
  4. Put your api key in config.js and export it.
  5. Import your api key in app.js as apiKey and remove the respective env variable process.env.REACT_APP_API_KEY.
  6. Use npm run start to run a development build or build the app with npm run build.

About

A simple SPA news site built with React and React hooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published