+
Skip to content

Conversation

EswaramoorthyKarthikeyan
  1. Changed card style

  2. entire body style and scroll container related changes

  3. font style added

This commit introduces a new `Story` component to encapsulate the rendering logic for individual stories.

Key changes:
- Created `src/Story.js` which now handles the presentation of a single story.
- The `Story` component receives a `story` object as a prop.
- It also accounts for the `story.double` property, allowing for potential future layout variations based on this flag.
- Refactored `src/App.js` to import and use the new `Story` component, simplifying `App.js` and improving modularity.

This refactoring enhances code organization and readability.
This commit significantly revises the README.md to provide clear and concise information about the Rejected.us project.

Key updates include:
- Added a project title and a brief description of its purpose.
- Detailed the project structure, highlighting key components like `App.js`, `Story.js`, and the data source `src/data/stories.js`.
- Provided clear, step-by-step instructions for contributing new stories, including data format and image placement.
- Condensed the "Available Scripts" section to focus on essential commands (`npm start`, `npm test`, `npm run build`).
- Retained links to Create React App and React documentation for further learning.

The updated README aims to be more helpful for you and potential contributors.
…story-component

Refactor/extract story component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载