manavsehgal / reactspeedcoding
- понедельник, 9 мая 2016 г. в 03:13:14
JavaScript
Learn JavaScript ES6 React with 20 reusable components, 25+ style modules, 14 ebook chapters.
Companion code and manuscript of React Speed Coding book is available here.
Download and read ebook, PDF, mobile formats. Support this project.
Clone the repo like so.
git clone --depth=1 https://github.com/manavsehgal/reactspeedcoding.git
The --depth=1
flag ensures that only the latest commit is cloned.
- reactspeedcoding
-- manuscript # chapter content
-- code # sample code
Now cd to the code
directory and install dependencies using npm install
command.
Run sample app using npm start
command.
In this chapter we will start designing our very own React Speed UI framework for your apps. We will do so using Flexbox, PostCSS, and custom React components.
Designing a custom UI framework is an ambitious undertaking. Our task becomes achievable if we scope our design goals upfront.
Speed. Like the name suggests, our UI framework is built for speed of development and creating performant apps.
Single Page App. We will design various UI components required for a single page app including landing page, buttons, forms, navigation menu, interactive content cards, and footer.
Responsive. Our app will be responsive and components will render according to target screen size.
Customizable. We want our UI framework to be easily customizable using custom color themes.
Reusable. The UI frameworks will be reusable across multiple apps.
Simple. We will keep our UI framework simple to understand, extend, and reuse.
Optimized. Speed UI framework will be production ready and optimized for light payloads.
Reactive. This topic is TBD. We will see if using Microservices and Reactive architectural patterns can be in scope of this book.
State Machine. Our UI framework will support state management. This is topic for an advanced chapter, however we will consider this goal as we design the framework.
Expressive. Our UI framework will be reusable in expressive, English like statements.
Code: Page component, YouTube component, GitHub component, Workflow component,
IconText component.
The objective at this stage is to speedily "prototype" new features and code within your React project. Subsequent chapters on Designing Component Internals, Wiring Multiple Components, and Refactoring Existing Components will go over best practices to create performant, reusable, and maintainable code.
Note: This chapter is TBD.
Note: This chapter is TBD.
Code: All 10 components are available under /app/components
Note: This chapter is TBD.
Note: This chapter is TBD.
Plan is to add examples for integrating various testing and lint tools within your React development workflow.
Note: This chapter is TBD.
Plan is to draw out the Big Picture of component design workflow. Connecting the dots from prior five chapters which detail the workflow.
Note: This chapter is in progress.
Note: This chapter is TBD.
Plan is to add Kadira Storybook, create React playgrounds, Redux dev tools, and add visual code analytics.